path: root/frontends/gtk/scaffolding.h
diff options
authorDaniel Silverstone <>2020-05-08 20:46:37 +0100
committerDaniel Silverstone <>2020-05-08 20:46:37 +0100
commit4b8ed9b7775aec686a46b1b2be01a4efa1214e55 (patch)
tree02c359c4946a039a2a9acf374c6fc29768f13c1c /frontends/gtk/scaffolding.h
parent14e506f89f971ddbe204576092c6ffec59e85248 (diff)
GTK: Cause the page-info popup to appear in the right place
To position the page-info window we have to tunnel all the way from the current scaffolding, via its top-level gui window, through to the toolbar. In the toolbar we look up the URL bar and then determine the screen coordinates of the scaffolding via the top level widget GTK semantics. Finally we place the page-info window 4 pixels down and right of the bottom-left of the entry box, which should look nice. Signed-off-by: Daniel Silverstone <>
Diffstat (limited to 'frontends/gtk/scaffolding.h')
1 files changed, 10 insertions, 0 deletions
diff --git a/frontends/gtk/scaffolding.h b/frontends/gtk/scaffolding.h
index 1fae00394..95cd51a2a 100644
--- a/frontends/gtk/scaffolding.h
+++ b/frontends/gtk/scaffolding.h
@@ -27,6 +27,7 @@ struct hlcache_handle;
struct gui_window;
struct gui_search_web_table;
struct nsurl;
+struct nsgtk_pi_window;
@@ -56,6 +57,15 @@ nserror nsgtk_scaffolding_throbber(struct gui_window* gw, bool active);
nserror nsgtk_scaffolding_toolbar_context_menu(struct nsgtk_scaffolding *gs);
+ * Position the page-info popup in the right place
+ *
+ * \param gs The scaffolding to position relative to
+ * \param win The page-info window to position
+ */
+nserror nsgtk_scaffolding_position_page_info(struct nsgtk_scaffolding *gs,
+ struct nsgtk_pi_window *win);
* open the burger menu
nserror nsgtk_scaffolding_burger_menu(struct nsgtk_scaffolding *gs);