diff options
Diffstat (limited to 'gtk/hostlist_ipx.c')
-rw-r--r-- | gtk/hostlist_ipx.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/gtk/hostlist_ipx.c b/gtk/hostlist_ipx.c index 66679fe1bc..59f76d5fc4 100644 --- a/gtk/hostlist_ipx.c +++ b/gtk/hostlist_ipx.c @@ -42,7 +42,6 @@ #include "gtk/gui_stat_menu.h" #include "gtk/hostlist_table.h" -#include "gtk/stock_icons.h" static int ipx_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip) @@ -76,12 +75,19 @@ gtk_ipx_hostlist_init(const char *optarg, void* userdata _U_) } - +#ifdef MAIN_MENU_USE_UIMANAGER +void +gtk_ipx_hostlist_cb(GtkAction *action _U_, gpointer user_data _U_) +{ + gtk_ipx_hostlist_init("hosts,ipx",NULL); +} +#else static void gtk_ipx_hostlist_cb(GtkWidget *w _U_, gpointer d _U_) { gtk_ipx_hostlist_init("hosts,ipx",NULL); } +#endif void @@ -90,20 +96,6 @@ register_tap_listener_ipx_hostlist(void) register_stat_cmd_arg("hosts,ipx", gtk_ipx_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 */ - "IPX", /* Name */ - WIRESHARK_STOCK_ENDPOINTS, /* stock_id */ - "IPX", /* label */ - NULL, /* accelerator */ - NULL, /* tooltip */ - G_CALLBACK(gtk_ipx_hostlist_cb), /* callback */ - TRUE, /* enabled */ - NULL, /* selected_packet_enabled */ - NULL, /* selected_tree_row_enabled */ - NULL); /* callback_data */ - #else register_stat_menu_item("IPX", REGISTER_STAT_GROUP_ENDPOINT_LIST, gtk_ipx_hostlist_cb, NULL, NULL, NULL); |