diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-27 23:46:40 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-27 23:46:40 +0100 |
commit | 0ddbb21fdf210aae33143f4f3949bf35b6651376 (patch) | |
tree | d718b5c05331bd6b205f36c3862af2311dccbaa3 /frontends/gtk/toolbar.h | |
parent | 39bb4b403e4a45c1cd2e05218599c04a31af1566 (diff) | |
download | netsurf-0ddbb21fdf210aae33143f4f3949bf35b6651376.tar.gz netsurf-0ddbb21fdf210aae33143f4f3949bf35b6651376.tar.bz2 |
allow menu activation to use the toolbar button implementations
Diffstat (limited to 'frontends/gtk/toolbar.h')
-rw-r--r-- | frontends/gtk/toolbar.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/gtk/toolbar.h b/frontends/gtk/toolbar.h index f04d807c3..b89774ba2 100644 --- a/frontends/gtk/toolbar.h +++ b/frontends/gtk/toolbar.h @@ -70,6 +70,19 @@ nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active); */ nserror nsgtk_toolbar_set_url(struct nsgtk_toolbar *tb, nsurl *url); + +/** + * 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. + * + * \param toolbar A toolbar returned from a creation + * \param itemid the id of the item to activate + * \return NSERROR_OK on success + */ +nserror nsgtk_toolbar_item_activate(struct nsgtk_toolbar *tb, nsgtk_toolbar_button itemid); + /** * sets up the images for scaffolding. */ |