mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 04:02:34 +03:00
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>
This commit is contained in:
parent
a016445a82
commit
c9e5fa9bc1
@ -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 */
|
||||
|
@ -3592,6 +3592,9 @@ nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active)
|
||||
browser_window_history_forward_available(bw));
|
||||
nsgtk_local_history_hide();
|
||||
|
||||
/* update the url bar, for the final time */
|
||||
browser_window_refresh_url_bar(bw);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user