mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 8.2.0622: Haiku: GUI does not compile
Problem: Haiku: GUI does not compile. Solution: Various fixes. (Emir Sari, closes #5961)
This commit is contained in:
parent
95a467e7ee
commit
beae4084fd
1
Filelist
1
Filelist
@ -607,6 +607,7 @@ SRC_AMI = \
|
|||||||
|
|
||||||
# source files for Haiku (also in the extra archive)
|
# source files for Haiku (also in the extra archive)
|
||||||
SRC_HAIKU = \
|
SRC_HAIKU = \
|
||||||
|
README_haiku.txt \
|
||||||
src/os_haiku.h \
|
src/os_haiku.h \
|
||||||
src/os_haiku.rdef \
|
src/os_haiku.rdef \
|
||||||
src/gui_haiku.cc \
|
src/gui_haiku.cc \
|
||||||
|
@ -26,8 +26,8 @@ All commands are given with normal keyboard characters, so those who can type
|
|||||||
with ten fingers can work very fast. Additionally, function keys can be
|
with ten fingers can work very fast. Additionally, function keys can be
|
||||||
mapped to commands by the user, and the mouse can be used.
|
mapped to commands by the user, and the mouse can be used.
|
||||||
|
|
||||||
Vim runs under MS-Windows (XP, Vista, 7, 8, 10), macOS, VMS and almost all
|
Vim runs under MS-Windows (XP, Vista, 7, 8, 10), macOS, Haiku, VMS and almost
|
||||||
flavours of UNIX. Porting to other systems should not be very difficult.
|
all flavours of UNIX. Porting to other systems should not be very difficult.
|
||||||
Older versions of Vim run on MS-DOS, MS-Windows 95/98/Me/NT/2000, Amiga DOS,
|
Older versions of Vim run on MS-DOS, MS-Windows 95/98/Me/NT/2000, Amiga DOS,
|
||||||
Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
|
Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
|
||||||
|
|
||||||
@ -72,6 +72,7 @@ archive):
|
|||||||
README_unix.txt Unix
|
README_unix.txt Unix
|
||||||
README_dos.txt MS-DOS and MS-Windows
|
README_dos.txt MS-DOS and MS-Windows
|
||||||
README_mac.txt Macintosh
|
README_mac.txt Macintosh
|
||||||
|
README_haiku.txt Haiku
|
||||||
README_vms.txt VMS
|
README_vms.txt VMS
|
||||||
|
|
||||||
There are other `README_*.txt` files, depending on the distribution you used.
|
There are other `README_*.txt` files, depending on the distribution you used.
|
||||||
|
13
READMEdir/README_haiku.txt
Normal file
13
READMEdir/README_haiku.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
README_haiku.txt for version 8.2 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
This file explains the installation of Vim on Haiku operating system.
|
||||||
|
See "README.txt" for general information about Vim.
|
||||||
|
|
||||||
|
Preferred (and easy) way to get Vim on Haiku is to use default Haiku
|
||||||
|
software repository HaikuPorts. To get Vim:
|
||||||
|
|
||||||
|
- Open HaikuDepot application and search for "vim" package, then install,
|
||||||
|
- Open a Terminal and type "pkgman install vim", then follow instructions.
|
||||||
|
|
||||||
|
If you prefer to install Vim from source, follow the instructions on
|
||||||
|
"runtime/doc/os_haiku.txt", "Compiling Haiku" section.
|
@ -1404,8 +1404,8 @@ HAIKUGUI_TESTTARGET = gui
|
|||||||
HAIKUGUI_BUNDLE =
|
HAIKUGUI_BUNDLE =
|
||||||
|
|
||||||
# All GUI files
|
# All GUI files
|
||||||
ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c
|
ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c gui_haiku.cc
|
||||||
ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w32.pro gui_photon.pro
|
ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w32.pro gui_photon.pro gui_haiku.pro
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
@ -79,6 +79,10 @@ typedef struct BalloonEvalStruct
|
|||||||
#ifdef FEAT_GUI_MSWIN
|
#ifdef FEAT_GUI_MSWIN
|
||||||
void *tofree;
|
void *tofree;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef FEAT_GUI_HAIKU
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
#endif
|
||||||
} BalloonEval;
|
} BalloonEval;
|
||||||
|
|
||||||
#define EVAL_OFFSET_X 15 // displacement of beval topleft corner from pointer
|
#define EVAL_OFFSET_X 15 // displacement of beval topleft corner from pointer
|
||||||
|
@ -2916,6 +2916,7 @@ VimToolbar::RemoveButton(vimmenu_T *menu)
|
|||||||
menu->button = NULL;
|
menu->button = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
@ -2926,6 +2927,7 @@ VimToolbar::GrayButton(vimmenu_T *menu, int grey)
|
|||||||
if(index >= 0)
|
if(index >= 0)
|
||||||
menu->button->SetEnabled(grey ? false : true);
|
menu->button->SetEnabled(grey ? false : true);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -3563,7 +3565,7 @@ gui_mch_set_text_area_pos(
|
|||||||
gui.vimTextArea->MoveTo(x, y);
|
gui.vimTextArea->MoveTo(x, y);
|
||||||
gui.vimTextArea->ResizeTo(w - PEN_WIDTH, h - PEN_WIDTH);
|
gui.vimTextArea->ResizeTo(w - PEN_WIDTH, h - PEN_WIDTH);
|
||||||
|
|
||||||
/*#ifdef FEAT_GUI_TABLINE
|
#ifdef FEAT_GUI_TABLINE
|
||||||
if(gui.vimForm->TabLine() != NULL) {
|
if(gui.vimForm->TabLine() != NULL) {
|
||||||
gui.vimForm->TabLine()->ResizeTo(w, gui.vimForm->TablineHeight());
|
gui.vimForm->TabLine()->ResizeTo(w, gui.vimForm->TablineHeight());
|
||||||
}
|
}
|
||||||
@ -3679,7 +3681,7 @@ gui_mch_create_scrollbar(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_WINDOWS) || defined(PROTO)
|
#if defined(FEAT_WINDOWS) || defined(FEAT_GUI_HAIKU) || defined(PROTO)
|
||||||
void
|
void
|
||||||
gui_mch_destroy_scrollbar(
|
gui_mch_destroy_scrollbar(
|
||||||
scrollbar_T *sb)
|
scrollbar_T *sb)
|
||||||
@ -3736,7 +3738,7 @@ gui_mch_set_blinking(
|
|||||||
* Stop the cursor blinking. Show the cursor if it wasn't shown.
|
* Stop the cursor blinking. Show the cursor if it wasn't shown.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gui_mch_stop_blink()
|
gui_mch_stop_blink(int may_call_gui_update_cursor)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
if (blink_timer != 0)
|
if (blink_timer != 0)
|
||||||
@ -3870,7 +3872,7 @@ gui_mch_get_font(
|
|||||||
hl_set_font_name((char_u*)font_name);
|
hl_set_font_name((char_u*)font_name);
|
||||||
|
|
||||||
// Set guifont to the name of the selected font.
|
// Set guifont to the name of the selected font.
|
||||||
char_u* new_p_guifont = alloc(STRLEN(font_name) + 1);
|
char_u* new_p_guifont = (char_u*)alloc(STRLEN(font_name) + 1);
|
||||||
if (new_p_guifont != NULL) {
|
if (new_p_guifont != NULL) {
|
||||||
STRCPY(new_p_guifont, font_name);
|
STRCPY(new_p_guifont, font_name);
|
||||||
vim_free(p_guifont);
|
vim_free(p_guifont);
|
||||||
@ -4488,7 +4490,7 @@ gui_mch_wait_for_chars(
|
|||||||
if (gui.in_focus)
|
if (gui.in_focus)
|
||||||
gui_mch_start_blink();
|
gui_mch_start_blink();
|
||||||
else
|
else
|
||||||
gui_mch_stop_blink();
|
gui_mch_stop_blink(TRUE);
|
||||||
focus = gui.in_focus;
|
focus = gui.in_focus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ int gui_mch_open(void);
|
|||||||
void gui_mch_exit(int vim_exitcode);
|
void gui_mch_exit(int vim_exitcode);
|
||||||
int gui_mch_init_check(void);
|
int gui_mch_init_check(void);
|
||||||
void gui_mch_flush(void);
|
void gui_mch_flush(void);
|
||||||
|
int gui_mch_is_blink_off(void);
|
||||||
void gui_mch_new_colors(void);
|
void gui_mch_new_colors(void);
|
||||||
void gui_mch_set_bg_color(guicolor_T color);
|
void gui_mch_set_bg_color(guicolor_T color);
|
||||||
void gui_mch_set_fg_color(guicolor_T color);
|
void gui_mch_set_fg_color(guicolor_T color);
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
622,
|
||||||
/**/
|
/**/
|
||||||
621,
|
621,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user