diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-04-11 16:38:14 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-04-11 16:38:14 +0200 |
commit | a31702995544b1bfd2cba56061372cf8f149deaa (patch) | |
tree | 5c0ad3aed6a53b460926b9db5ea907acc360dd13 /src/gui/gtk/gui-gtk-window.c | |
parent | 783e6228a0f0ce6551a3c32d7a2fb859538e4829 (diff) | |
download | weechat-a31702995544b1bfd2cba56061372cf8f149deaa.zip |
core: fix display bugs and crashs with small windows (bug #36107)
Diffstat (limited to 'src/gui/gtk/gui-gtk-window.c')
-rw-r--r-- | src/gui/gtk/gui-gtk-window.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c index 5aea4a65a..24ce6c22a 100644 --- a/src/gui/gtk/gui-gtk-window.c +++ b/src/gui/gtk/gui-gtk-window.c @@ -264,7 +264,7 @@ gui_window_switch_to_buffer (struct t_gui_window *window, void gui_window_page_up (struct t_gui_window *window) { - if (!gui_ok) + if (!gui_init_ok) return; if (!window->scroll->first_line_displayed) @@ -288,7 +288,7 @@ gui_window_page_down (struct t_gui_window *window) struct t_gui_line *ptr_line; int line_pos; - if (!gui_ok) + if (!gui_init_ok) return; if (window->scroll->start_line) @@ -320,7 +320,7 @@ gui_window_page_down (struct t_gui_window *window) void gui_window_scroll_up (struct t_gui_window *window) { - if (!gui_ok) + if (!gui_init_ok) return; if (!window->scroll->first_line_displayed) @@ -345,7 +345,7 @@ gui_window_scroll_down (struct t_gui_window *window) struct t_gui_line *ptr_line; int line_pos; - if (!gui_ok) + if (!gui_init_ok) return; if (window->scroll->start_line) @@ -378,7 +378,7 @@ gui_window_scroll_down (struct t_gui_window *window) void gui_window_scroll_top (struct t_gui_window *window) { - if (!gui_ok) + if (!gui_init_ok) return; if (!window->scroll->first_line_displayed) @@ -396,7 +396,7 @@ gui_window_scroll_top (struct t_gui_window *window) void gui_window_scroll_bottom (struct t_gui_window *window) { - if (!gui_ok) + if (!gui_init_ok) return; if (window->scroll->start_line) @@ -471,7 +471,7 @@ gui_window_refresh_windows () { /*struct t_gui_window *ptr_win, *old_current_window;*/ - if (gui_ok) + if (gui_init_ok) { /* TODO: write this function for Gtk */ } @@ -487,7 +487,7 @@ gui_window_split_horizontal (struct t_gui_window *window, int percentage) struct t_gui_window *new_window; int height1, height2; - if (!gui_ok) + if (!gui_init_ok) return NULL; new_window = NULL; @@ -532,7 +532,7 @@ gui_window_split_vertical (struct t_gui_window *window, int percentage) struct t_gui_window *new_window; int width1, width2; - if (!gui_ok) + if (!gui_init_ok) return NULL; new_window = NULL; |