From 608cc3cbbfae27498268442aa31ef791894e0789 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 7 Sep 2019 13:42:33 +0100 Subject: make handling of non browser window containing tabs reasonable --- frontends/gtk/scaffolding.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'frontends/gtk/scaffolding.h') diff --git a/frontends/gtk/scaffolding.h b/frontends/gtk/scaffolding.h index 42ae6b6be..28fa6ec25 100644 --- a/frontends/gtk/scaffolding.h +++ b/frontends/gtk/scaffolding.h @@ -153,5 +153,12 @@ void nsgtk_scaffolding_context_menu(struct nsgtk_scaffolding *g, gdouble x, gdou */ void nsgtk_scaffolding_set_title(struct gui_window *gw, const char *title); +/** + * find which scaffolding contains a gtk notebook + * + * \param notebook The notebook to search for. + * \return The scaffolding containing the notebook or NULL if not found + */ +struct nsgtk_scaffolding *nsgtk_scaffolding_from_notebook(GtkNotebook *notebook); #endif /* NETSURF_GTK_SCAFFOLDING_H */ -- cgit v1.2.1