From 807fe8ed99b09c33c02c7574a830ce0b344d6e91 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Fri, 3 Mar 2017 20:55:13 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- epan/plugin_if.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'epan/plugin_if.c') 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 -- cgit v1.2.1