summaryrefslogtreecommitdiff
path: root/frontends/gtk/toolbar.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-22 15:33:17 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-22 15:33:17 +0000
commita016445a8265a03719d52c49e069c7f6914c7e4d (patch)
tree0ce6b6abb06783596aaada860a81ba334484dde5 /frontends/gtk/toolbar.h
parent5239163f4dd47a3f9ca74501575053a69c5a95b8 (diff)
downloadnetsurf-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.h6
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);
/**