summaryrefslogtreecommitdiffstats
path: root/src/gui_haiku.cc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-23 15:41:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-23 15:41:49 +0200
commitbeae4084fd34c56d43787be73588070ddc474251 (patch)
tree33f63f17814157cb1a4c2d5bb9cf3f006dd32ed2 /src/gui_haiku.cc
parent95a467e7eeab664a71446e320d328d1d7c52a35a (diff)
patch 8.2.0622: Haiku: GUI does not compilev8.2.0622
Problem: Haiku: GUI does not compile. Solution: Various fixes. (Emir Sari, closes #5961)
Diffstat (limited to 'src/gui_haiku.cc')
-rw-r--r--src/gui_haiku.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui_haiku.cc b/src/gui_haiku.cc
index b7ecf64402..f26e9035a5 100644
--- a/src/gui_haiku.cc
+++ b/src/gui_haiku.cc
@@ -2916,6 +2916,7 @@ VimToolbar::RemoveButton(vimmenu_T *menu)
menu->button = NULL;
}
}
+ return true;
}
bool
@@ -2926,6 +2927,7 @@ VimToolbar::GrayButton(vimmenu_T *menu, int grey)
if(index >= 0)
menu->button->SetEnabled(grey ? false : true);
}
+ return true;
}
void
@@ -3563,7 +3565,7 @@ gui_mch_set_text_area_pos(
gui.vimTextArea->MoveTo(x, y);
gui.vimTextArea->ResizeTo(w - PEN_WIDTH, h - PEN_WIDTH);
-/*#ifdef FEAT_GUI_TABLINE
+#ifdef FEAT_GUI_TABLINE
if(gui.vimForm->TabLine() != NULL) {
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
gui_mch_destroy_scrollbar(
scrollbar_T *sb)
@@ -3736,7 +3738,7 @@ gui_mch_set_blinking(
* Stop the cursor blinking. Show the cursor if it wasn't shown.
*/
void
-gui_mch_stop_blink()
+gui_mch_stop_blink(int may_call_gui_update_cursor)
{
// TODO
if (blink_timer != 0)
@@ -3870,7 +3872,7 @@ gui_mch_get_font(
hl_set_font_name((char_u*)font_name);
// 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) {
STRCPY(new_p_guifont, font_name);
vim_free(p_guifont);
@@ -4488,7 +4490,7 @@ gui_mch_wait_for_chars(
if (gui.in_focus)
gui_mch_start_blink();
else
- gui_mch_stop_blink();
+ gui_mch_stop_blink(TRUE);
focus = gui.in_focus;
}