summaryrefslogtreecommitdiff
path: root/frontends/gtk/tabs.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-09-06 20:42:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-21 10:53:41 +0100
commitc7c89daff3f04d2ccc78905c128e7dfa938543d4 (patch)
tree35ebfb57f70c525f79199a81a3b01a5c058d4ac4 /frontends/gtk/tabs.h
parent46e1116aaa38793ff3a36fb5ff05e3be448df49f (diff)
downloadnetsurf-c7c89daff3f04d2ccc78905c128e7dfa938543d4.tar.gz
netsurf-c7c89daff3f04d2ccc78905c128e7dfa938543d4.tar.bz2
allow toolbar customisation to open a tab
Diffstat (limited to 'frontends/gtk/tabs.h')
-rw-r--r--frontends/gtk/tabs.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/frontends/gtk/tabs.h b/frontends/gtk/tabs.h
index acec396ed..63edae3cc 100644
--- a/frontends/gtk/tabs.h
+++ b/frontends/gtk/tabs.h
@@ -34,32 +34,39 @@ struct gui_window;
nserror nsgtk_notebook_create(GtkBuilder *builder, GtkNotebook **notebook_out);
/**
- * Add new tab to notebook.
+ * Add new gui window page to notebook.
*/
void nsgtk_tab_add(struct gui_window *window, GtkWidget *tab_contents, bool background, const char *title, GdkPixbuf *icon_pixbuf);
/**
+ * Add new page to a notebook
+ */
+nserror nsgtk_tab_add_page(GtkNotebook *notebook, GtkWidget *tab_contents, bool background, const char *title, GdkPixbuf *icon_pixbuf);
+
+
+/**
* set the tab title
*
* The tab title will be set to the parameter
*
* \note currently only called from nsgtk_window_set_title()
*
- * \param g the gui window to set tab title for.
+ * \param page The page widget that was added to the notebook
* \param title The title text which may not be NULL.
+ * \return NSERROR_OK on sucess else appropriate code.
*/
-void nsgtk_tab_set_title(struct gui_window *g, const char *title);
+nserror nsgtk_tab_set_title(GtkWidget *page, const char *title);
/**
* set the tab icon
*
* The tab icon will be set to the \a pixbuf parameter
*
- * \param gw The gui window to set teh tab icon for.
+ * \param page The page widget that was added to the notebook
* \param pixbuf The pixbuf to set the icon to.
* \return NSERROR_OK on sucess else appropriate code.
*/
-nserror nsgtk_tab_set_icon(struct gui_window *gw, GdkPixbuf *pixbuf);
+nserror nsgtk_tab_set_icon(GtkWidget *page, GdkPixbuf *pixbuf);
void nsgtk_tab_options_changed(GtkNotebook *notebook);
nserror nsgtk_tab_close_current(GtkNotebook *notebook);