aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/conversations_ip.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-05-03 20:23:57 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-05-03 20:23:57 +0000
commitb569f052d92067d165e6d3eefd342574eb686f05 (patch)
tree189219d1a128d4cebb4bfb7f41e2fd3b0c113906 /gtk/conversations_ip.c
parent8570de9708319bf89d4c034b66502e6072c728d3 (diff)
More GUIManager stuff.
svn path=/trunk/; revision=36981
Diffstat (limited to 'gtk/conversations_ip.c')
-rw-r--r--gtk/conversations_ip.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/gtk/conversations_ip.c b/gtk/conversations_ip.c
index 60400fd87d..b6fd7ce2af 100644
--- a/gtk/conversations_ip.c
+++ b/gtk/conversations_ip.c
@@ -42,7 +42,7 @@
#include "gtk/gui_stat_menu.h"
#include "gtk/conversations_table.h"
-
+#include "gtk/stock_icons.h"
static int
ip_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip)
@@ -82,8 +82,24 @@ register_tap_listener_ip_conversation(void)
{
register_stat_cmd_arg("conv,ip", ip_conversation_init,NULL);
+#ifdef MAIN_MENU_USE_UIMANAGER
+ register_stat_menu_item_stock(
+ REGISTER_STAT_GROUP_CONVERSATION_LIST, /* Group */
+ "/Menubar/StatisticsMenu/ConversationListMenu/List-item", /* GUI path */
+ "IPv4", /* Name */
+ WIRESHARK_STOCK_CONVERSATIONS, /* stock_id */
+ "IPv4", /* label */
+ NULL, /* accelerator */
+ NULL, /* tooltip */
+ G_CALLBACK(ip_endpoints_cb), /* callback */
+ TRUE, /* enabled */
+ NULL, /* selected_packet_enabled */
+ NULL, /* selected_tree_row_enabled */
+ NULL); /* callback_data */
+#else
register_stat_menu_item("IPv4", REGISTER_STAT_GROUP_CONVERSATION_LIST,
ip_endpoints_cb, NULL, NULL, NULL);
+#endif
register_conversation_table(TRUE, "IPv4", "ip", NULL /*filter*/, ip_conversation_packet);
}