From 3a9fa29ee53bef70a0e643847acc2fb374501f70 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 6 Jul 2014 18:34:34 +0100 Subject: try and improve usage of browser window internals --- gtk/scaffolding.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gtk/scaffolding.c') diff --git a/gtk/scaffolding.c b/gtk/scaffolding.c index c2dc0fdc9..ee2d46227 100644 --- a/gtk/scaffolding.c +++ b/gtk/scaffolding.c @@ -2444,9 +2444,8 @@ void nsgtk_scaffolding_set_top_level(struct gui_window *gw) nsgtk_scaffolding_set_icon(gw); /* Ensure the window's title bar is updated */ - if (bw->current_content != NULL) { - gui_window_set_title(gw, content_get_title(bw->current_content)); - } + gui_window_set_title(gw, browser_window_get_title(bw)); + } /* exported interface documented in scaffolding.h */ -- cgit v1.2.3