diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-09-01 15:43:19 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-09-21 10:53:41 +0100 |
commit | 85b65921ed38b3ce0bd795e9455afbd53610b309 (patch) | |
tree | b78306af01cdaf6b2f749413575ae12225dadeb6 /frontends/gtk/toolbar.h | |
parent | 2e8861dc05325c88cfb8130e7eddd0967e4d4b09 (diff) | |
download | netsurf-85b65921ed38b3ce0bd795e9455afbd53610b309.tar.gz netsurf-85b65921ed38b3ce0bd795e9455afbd53610b309.tar.bz2 |
cleanup scaffolding a bit
Diffstat (limited to 'frontends/gtk/toolbar.h')
-rw-r--r-- | frontends/gtk/toolbar.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/frontends/gtk/toolbar.h b/frontends/gtk/toolbar.h index c302194eb..dc229e788 100644 --- a/frontends/gtk/toolbar.h +++ b/frontends/gtk/toolbar.h @@ -23,7 +23,7 @@ * control toolbar context */ struct nsgtk_toolbar; - +struct nsgtk_scaffolding; /** * create a control toolbar @@ -52,6 +52,7 @@ nserror nsgtk_toolbar_destroy(struct nsgtk_toolbar *toolbar); */ nserror nsgtk_toolbar_update(struct nsgtk_toolbar *tb); + /** * Start or stop a throbber in a toolbar * @@ -61,6 +62,7 @@ nserror nsgtk_toolbar_update(struct nsgtk_toolbar *tb); */ nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active); + /** * Update the toolbar url entry * @@ -70,16 +72,22 @@ nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active); */ nserror nsgtk_toolbar_set_url(struct nsgtk_toolbar *tb, nsurl *url); + /** * set the websearch image + * + * \param toolbar A toolbar returned from a creation + * \param pixbuf The pixel buffer data to use to set the web search icon + * \return NSERROR_OK on success */ nserror nsgtk_toolbar_set_websearch_image(struct nsgtk_toolbar *tb, GdkPixbuf *pixbuf); + /** * activate the handler for a toolbar item * * This allows the same action to be performed for menu enties as if - * the user had clicked the toolbar widget. + * the user had clicked the toolbar widget. * * \param toolbar A toolbar returned from a creation * \param itemid the id of the item to activate @@ -87,14 +95,16 @@ nserror nsgtk_toolbar_set_websearch_image(struct nsgtk_toolbar *tb, GdkPixbuf *p */ nserror nsgtk_toolbar_item_activate(struct nsgtk_toolbar *tb, nsgtk_toolbar_button itemid); + /** * sets up the images for scaffolding. */ void nsgtk_theme_implement(struct nsgtk_scaffolding *g); +/** + * Initialise customization of toolbar entries + */ void nsgtk_toolbar_customization_init(struct nsgtk_scaffolding *g); -void nsgtk_toolbar_connect_all(struct nsgtk_scaffolding *g); -int nsgtk_toolbar_get_id_from_widget(GtkWidget *widget, struct nsgtk_scaffolding *g); #endif |