diff options
author | Roland Knall <rknall@gmail.com> | 2017-03-03 20:55:13 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-03-04 00:56:51 +0000 |
commit | 807fe8ed99b09c33c02c7574a830ce0b344d6e91 (patch) | |
tree | 6c734784549ba422a6e914626cba9066b0b48f89 /epan/plugin_if.c | |
parent | 4a703e01f47d1127756dab5f43b53cc49179cf9f (diff) | |
download | wireshark-807fe8ed99b09c33c02c7574a830ce0b344d6e91.tar.gz |
pluginIF: Allow en-/disable of elements
Allow the enable/disable of an element
Change-Id: I9652e8d74b261ba259cebfba53e7bc7ef560d347
Reviewed-on: https://code.wireshark.org/review/20370
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan/plugin_if.c')
-rw-r--r-- | epan/plugin_if.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/plugin_if.c b/epan/plugin_if.c index a24587698d..7006802a00 100644 --- a/epan/plugin_if.c +++ b/epan/plugin_if.c @@ -511,6 +511,11 @@ void ext_toolbar_update_data_remove_entry(ext_toolbar_t * entry, gpointer data, ext_toolbar_update_entry( EXT_TOOLBAR_UPDATE_DATA_REMOVE, entry, data, idx, silent ); } +void ext_toolbar_update_data_set_active(ext_toolbar_t * entry, gboolean status) +{ + ext_toolbar_update_entry(EXT_TOOLBAR_SET_ACTIVE, entry, GINT_TO_POINTER(status ? 1 : 0), 0, TRUE ); +} + /* Implementation of GUI callback methods follows. * This is a necessity, as using modern UI systems, gui interfaces often operate * in different threads then the calling application. Even more so, if the calling |