summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-05-31 23:05:40 +0000
committerGuy Harris <guy@alum.mit.edu>2013-05-31 23:05:40 +0000
commit6c4ceb643bb037732c05df3b6ba761a199f50080 (patch)
tree0ed1a762df4ab12adac55203ca429ff3e230ca28 /ui
parente8947ae24dc8d3a92477849bd045deaace62aabb (diff)
downloadwireshark-6c4ceb643bb037732c05df3b6ba761a199f50080.tar.gz
The SIP and WSP statistics taps register themselves; get rid of their
hardcoded menu items. svn path=/trunk/; revision=49663
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/gui_stat_menu.h2
-rw-r--r--ui/gtk/main_menubar.c4
-rw-r--r--ui/gtk/sip_stat.c7
-rw-r--r--ui/gtk/wsp_stat.c6
4 files changed, 0 insertions, 19 deletions
diff --git a/ui/gtk/gui_stat_menu.h b/ui/gtk/gui_stat_menu.h
index 7670d0de15..006995bb50 100644
--- a/ui/gtk/gui_stat_menu.h
+++ b/ui/gtk/gui_stat_menu.h
@@ -144,8 +144,6 @@ void gsm_a_stat_gtk_dtap_tp_cb(GtkAction *action, gpointer user_data);
void gsm_a_stat_gtk_sacch_rr_cb(GtkAction *action, gpointer user_data);
void gtk_mac_lte_stat_init(const char *opt_arg, void *userdata);
void gtk_rlc_lte_stat_init(const char *opt_arg, void *userdata);
-void sipstat_cb(GtkAction *action, gpointer user_data);
-void wsp_stat_cb(GtkAction *action, gpointer user_data);
void gsm_map_stat_gtk_cb(GtkAction *action, gpointer user_data);
void gsm_map_stat_gtk_sum_cb(GtkAction *action, gpointer user_data);
diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c
index 59a5d8bee9..bf19afe3d8 100644
--- a/ui/gtk/main_menubar.c
+++ b/ui/gtk/main_menubar.c
@@ -1276,11 +1276,9 @@ static const char *ui_desc_menubar =
" <menuitem name='AnalysethisAssociation' action='/Telephony/SCTP/AnalysethisAssociation'/>\n"
" <menuitem name='ShowAllAssociations' action='/Telephony/SCTP/ShowAllAssociations'/>\n"
" </menu>\n"
-" <menuitem name='SIP' action='/Telephony/SIP'/>\n"
" <menuitem name='SMPP' action='/Telephony/smpp_commands'/>\n"
" <menuitem name='UCP' action='/Telephony/ucp_messages'/>\n"
" <menuitem name='VoIPCalls' action='/Telephony/VoIPCalls'/>\n"
-" <menuitem name='WSP' action='/Telephony/WSP'/>\n"
" </menu>\n"
" <menu name= 'ToolsMenu' action='/Tools'>\n"
" <menuitem name='FirewallACLRules' action='/Tools/FirewallACLRules'/>\n"
@@ -1721,11 +1719,9 @@ static const GtkActionEntry main_menu_bar_entries[] = {
{ "/Telephony/SCTP", NULL, "S_CTP", NULL, NULL, NULL },
{ "/Telephony/SCTP/AnalysethisAssociation", NULL, "Analyse this Association", NULL, NULL, G_CALLBACK(sctp_analyse_start) },
{ "/Telephony/SCTP/ShowAllAssociations", NULL, "Show All Associations...", NULL, NULL, G_CALLBACK(sctp_stat_start) },
- { "/Telephony/SIP", NULL, "_SIP...", NULL, NULL, G_CALLBACK(sipstat_cb) },
{ "/Telephony/smpp_commands", NULL, "SM_PPOperations", NULL, NULL, G_CALLBACK(gtk_stats_tree_cb) },
{ "/Telephony/ucp_messages", NULL, "_UCP Messages", NULL, NULL, G_CALLBACK(gtk_stats_tree_cb) },
{ "/Telephony/VoIPCalls", WIRESHARK_STOCK_TELEPHONE, "_VoIP Calls", NULL, NULL, G_CALLBACK(voip_calls_launch) },
- { "/Telephony/WSP", NULL, "_WAP-WSP...", NULL, NULL, G_CALLBACK(wsp_stat_cb) },
{ "/Tools/FirewallACLRules", NULL, "Firewall ACL Rules", NULL, NULL, G_CALLBACK(firewall_rule_cb) },
diff --git a/ui/gtk/sip_stat.c b/ui/gtk/sip_stat.c
index a1ff7d0e6f..eae4c9018a 100644
--- a/ui/gtk/sip_stat.c
+++ b/ui/gtk/sip_stat.c
@@ -694,10 +694,3 @@ register_tap_listener_gtksipstat(void)
{
register_param_stat(&sip_stat_dlg, "_SIP", REGISTER_STAT_GROUP_TELEPHONY);
}
-
-void
-sipstat_cb(GtkAction *action, gpointer user_data _U_)
-{
- tap_param_dlg_cb(action, &sip_stat_dlg);
-}
-
diff --git a/ui/gtk/wsp_stat.c b/ui/gtk/wsp_stat.c
index 01fdcfa69b..3781fbe073 100644
--- a/ui/gtk/wsp_stat.c
+++ b/ui/gtk/wsp_stat.c
@@ -417,9 +417,3 @@ register_tap_listener_gtkwspstat(void)
register_param_stat(&wsp_stat_dlg, "_WAP-WSP",
REGISTER_STAT_GROUP_TELEPHONY);
}
-
-void
-wsp_stat_cb(GtkAction *action, gpointer user_data _U_)
-{
- tap_param_dlg_cb(action, &wsp_stat_dlg);
-}