summaryrefslogtreecommitdiff
path: root/frontends/gtk/scaffolding.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-22 15:47:17 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-22 15:47:17 +0000
commitc9e5fa9bc12252ba9dedf35a8b219423dea7ba44 (patch)
treed685d3108170ecf8d459e8eac1764788c075f305 /frontends/gtk/scaffolding.c
parenta016445a8265a03719d52c49e069c7f6914c7e4d (diff)
downloadnetsurf-c9e5fa9bc12252ba9dedf35a8b219423dea7ba44.tar.gz
netsurf-c9e5fa9bc12252ba9dedf35a8b219423dea7ba44.tar.bz2
GTK: Ensure that we don't frob the URL bar from the scaffold
To correctly refocus the location box on tab switching we need to not update the url of the tab when the scaffold updates its global context. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends/gtk/scaffolding.c')
-rw-r--r--frontends/gtk/scaffolding.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index 0b3fe6783..030c6d488 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -262,9 +262,6 @@ static void scaffolding_update_context(struct nsgtk_scaffolding *g)
nsgtk_scaffolding_set_sensitivity(g);
- /* update the url bar, particularly necessary when tabbing */
- browser_window_refresh_url_bar(bw);
-
nsgtk_local_history_hide();
}
@@ -1353,7 +1350,7 @@ void nsgtk_scaffolding_set_top_level(struct gui_window *gw)
sc->top_level = gw;
- /* Synchronise the history (will also update the URL bar) */
+ /* Synchronise the history */
scaffolding_update_context(sc);
/* Ensure the window's title bar is updated */