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/toolbar.h | |
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/toolbar.h')
-rw-r--r-- | frontends/gtk/toolbar.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/gtk/toolbar.h b/frontends/gtk/toolbar.h index 9bb859be1..77c3bcda2 100644 --- a/frontends/gtk/toolbar.h +++ b/frontends/gtk/toolbar.h @@ -32,7 +32,11 @@ struct nsgtk_scaffolding; * \param[out] toolbar a pointer to receive the result. * \return NSERROR_OK and toolbar updated on success else error code */ -nserror nsgtk_toolbar_create(GtkBuilder *builder, struct browser_window *(*get_bw)(void *ctx), void *get_bw_ctx,struct nsgtk_toolbar **toolbar); +nserror nsgtk_toolbar_create(GtkBuilder *builder, + struct browser_window *(*get_bw)(void *ctx), + void *get_bw_ctx, + bool want_location_focus, + struct nsgtk_toolbar **toolbar); /** |