aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_usb.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-05-05 05:23:05 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-05-05 05:23:05 +0000
commitbfb25c3dca2743cdac0847ceb0745fc3ed51b4d0 (patch)
tree0553173300fa7e9305054583799663964740a544 /gtk/hostlist_usb.c
parent1d00bb4da19761ecae7664f234204ae31799a4f2 (diff)
More GUIManager stuff.
svn path=/trunk/; revision=36995
Diffstat (limited to 'gtk/hostlist_usb.c')
-rw-r--r--gtk/hostlist_usb.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/gtk/hostlist_usb.c b/gtk/hostlist_usb.c
index 4d0a5345c2..3dbd0148cd 100644
--- a/gtk/hostlist_usb.c
+++ b/gtk/hostlist_usb.c
@@ -42,7 +42,7 @@
#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_)
@@ -86,8 +86,24 @@ 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);
-
+#endif
register_hostlist_table(TRUE, "USB", "usb", NULL /*filter*/, usb_hostlist_packet);
}