diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-08 15:33:39 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-08 15:33:39 +0000 |
commit | 3697f543d6573ecf41108b1cf036a64b046cc8be (patch) | |
tree | 4c8a7bd09011ea64699671b1f4105452a081f08d | |
parent | 43c3caa4699e6658ea0c23295e27efdeb08d87a7 (diff) | |
download | netsurf-3697f543d6573ecf41108b1cf036a64b046cc8be.tar.gz netsurf-3697f543d6573ecf41108b1cf036a64b046cc8be.tar.bz2 |
Use browser_window_has_content.
-rw-r--r-- | gtk/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |