Use browser_window_has_content.
This commit is contained in:
parent
43c3caa469
commit
3697f543d6
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue