diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-05-10 05:31:45 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-05-10 05:31:45 +0000 |
commit | 8aa3a7b0acadc9fe50387830f3692c8e964b22b3 (patch) | |
tree | 0a4afa0923cd2c2bf6bb17ac01ad9288e352b511 /gtk/conversations_ip.c | |
parent | 40baaf4dbe6b792fb3f1c877b82446237f309c4b (diff) | |
download | wireshark-8aa3a7b0acadc9fe50387830f3692c8e964b22b3.tar.gz wireshark-8aa3a7b0acadc9fe50387830f3692c8e964b22b3.tar.bz2 wireshark-8aa3a7b0acadc9fe50387830f3692c8e964b22b3.zip |
More GUIManager stuff.
svn path=/trunk/; revision=37035
Diffstat (limited to 'gtk/conversations_ip.c')
-rw-r--r-- | gtk/conversations_ip.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/gtk/conversations_ip.c b/gtk/conversations_ip.c index b6fd7ce2af..b542e0719a 100644 --- a/gtk/conversations_ip.c +++ b/gtk/conversations_ip.c @@ -42,7 +42,6 @@ #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) @@ -69,13 +68,19 @@ ip_conversation_init(const char *optarg, void* userdata _U_) } - +#ifdef MAIN_MENU_USE_UIMANAGER +void +ip_endpoints_cb(GtkAction *action _U_, gpointer user_data _U_) +{ + ip_conversation_init("conv,ip",NULL); +} +#else static void ip_endpoints_cb(GtkWidget *w _U_, gpointer d _U_) { ip_conversation_init("conv,ip",NULL); } - +#endif void register_tap_listener_ip_conversation(void) @@ -83,19 +88,6 @@ 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); |