Use browser_window_has_content.

This commit is contained in:
Michael Drake 2014-02-08 15:33:39 +00:00
parent 43c3caa469
commit 3697f543d6
1 changed files with 2 additions and 2 deletions

View File

@ -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,