From a016445a8265a03719d52c49e069c7f6914c7e4d Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 22 Feb 2020 15:33:17 +0000 Subject: 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 --- frontends/gtk/toolbar.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'frontends/gtk/toolbar.h') 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); /** -- cgit v1.2.3