From a31702995544b1bfd2cba56061372cf8f149deaa Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 11 Apr 2012 16:38:14 +0200 Subject: core: fix display bugs and crashs with small windows (bug #36107) --- src/gui/gtk/gui-gtk-window.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gui/gtk/gui-gtk-window.c') 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; -- cgit v1.2.3