aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_usb.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-05-10 05:31:45 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-05-10 05:31:45 +0000
commit8aa3a7b0acadc9fe50387830f3692c8e964b22b3 (patch)
tree0a4afa0923cd2c2bf6bb17ac01ad9288e352b511 /gtk/hostlist_usb.c
parent40baaf4dbe6b792fb3f1c877b82446237f309c4b (diff)
More GUIManager stuff.
svn path=/trunk/; revision=37035
Diffstat (limited to 'gtk/hostlist_usb.c')
-rw-r--r--gtk/hostlist_usb.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/gtk/hostlist_usb.c b/gtk/hostlist_usb.c
index 3dbd0148cd..41243137b2 100644
--- a/gtk/hostlist_usb.c
+++ b/gtk/hostlist_usb.c
@@ -42,7 +42,6 @@
#include "gtk/gui_stat_menu.h"
#include "gtk/hostlist_table.h"
-#include "gtk/stock_icons.h"
static int
usb_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip _U_)
@@ -73,13 +72,19 @@ gtk_usb_hostlist_init(const char *optarg, void* userdata _U_)
}
-
+#ifdef MAIN_MENU_USE_UIMANAGER
+void
+gtk_usb_hostlist_cb(GtkAction *action _U_, gpointer user_data _U_)
+{
+ gtk_usb_hostlist_init("hosts,usb", NULL);
+}
+#else
static void
gtk_usb_hostlist_cb(GtkWidget *w _U_, gpointer d _U_)
{
gtk_usb_hostlist_init("hosts,usb", NULL);
}
-
+#endif
void
register_tap_listener_usb_hostlist(void)
@@ -87,20 +92,6 @@ register_tap_listener_usb_hostlist(void)
register_stat_cmd_arg("hosts,usb", gtk_usb_hostlist_init, NULL);
#ifdef MAIN_MENU_USE_UIMANAGER
- register_stat_menu_item_stock(
- REGISTER_STAT_GROUP_ENDPOINT_LIST, /* Group */
- "/Menubar/StatisticsMenu/EndpointListMenu/Endpoint-List-item", /* GUI path */
- "USB", /* Name */
- WIRESHARK_STOCK_ENDPOINTS, /* stock_id */
- "USB", /* label */
- NULL, /* accelerator */
- NULL, /* tooltip */
- G_CALLBACK(gtk_usb_hostlist_cb), /* callback */
- TRUE, /* enabled */
- NULL, /* selected_packet_enabled */
- NULL, /* selected_tree_row_enabled */
- NULL); /* callback_data */
-
#else
register_stat_menu_item("USB", REGISTER_STAT_GROUP_ENDPOINT_LIST,
gtk_usb_hostlist_cb, NULL, NULL, NULL);