From 3697f543d6573ecf41108b1cf036a64b046cc8be Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 8 Feb 2014 15:33:39 +0000 Subject: Use browser_window_has_content. --- gtk/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/window.c b/gtk/window.c index 1e9796ebb..0a2c1aa02 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -945,7 +945,7 @@ static void gui_window_update_box(struct gui_window *g, const struct rect *rect) { int sx, sy; - if (g->bw->current_content == NULL) + if (!browser_window_has_content(g->bw)) return; gui_window_get_scroll(g, &sx, &sy); @@ -992,7 +992,7 @@ static void gui_window_set_scroll(struct gui_window *g, int sx, int sy) static void gui_window_update_extent(struct gui_window *g) { - if (!g->bw->current_content) + if (!browser_window_has_content(g->bw)) return; gtk_layout_set_size(g->layout, -- cgit v1.2.3