diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-22 15:33:17 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-22 15:33:17 +0000 |
commit | a016445a8265a03719d52c49e069c7f6914c7e4d (patch) | |
tree | 0ce6b6abb06783596aaada860a81ba334484dde5 /frontends/gtk/window.c | |
parent | 5239163f4dd47a3f9ca74501575053a69c5a95b8 (diff) | |
download | netsurf-a016445a8265a03719d52c49e069c7f6914c7e4d.tar.gz netsurf-a016445a8265a03719d52c49e069c7f6914c7e4d.tar.bz2 |
GTK: Add a location focus state machine
Because the initial navigation process on new browser window
creation is somewhat complex, we need a small state machine in
the GTK UI to ensure that we handle the correct combination
of focussing needed to maintain selection through initial tab
opening.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends/gtk/window.c')
-rw-r--r-- | frontends/gtk/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c index 64f09ebbf..925c37870 100644 --- a/frontends/gtk/window.c +++ b/frontends/gtk/window.c @@ -862,7 +862,9 @@ gui_window_create(struct browser_window *bw, /* create toolbar */ - res = nsgtk_toolbar_create(tab_builder, bw_from_gw, g, &g->toolbar); + res = nsgtk_toolbar_create(tab_builder, bw_from_gw, g, + !!(flags & GW_CREATE_FOCUS_LOCATION), + &g->toolbar); if (res != NSERROR_OK) { free(g); g_object_unref(tab_builder); |