diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-04-23 05:37:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-04-23 05:37:23 +0000 |
commit | 81ebec370d30901623ef24b2112e91f8004c6ad0 (patch) | |
tree | d7edc8df42ad1945a9e96f593dd54f242937773b /gtk/mgcp_stat.c | |
parent | 4cfd8b0f360efd2d867333b80f201d13c630f7c8 (diff) |
Have "register_tap_menu_item()" create submenus as necessary for a menu
item.
Convert all Ethereal (GUI) taps to use "register_tap_menu_item()" rather
than having hardcoded menu items in "gtk/menu.c".
svn path=/trunk/; revision=7541
Diffstat (limited to 'gtk/mgcp_stat.c')
-rw-r--r-- | gtk/mgcp_stat.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/mgcp_stat.c b/gtk/mgcp_stat.c index 54a808de2b..1cb9b1052d 100644 --- a/gtk/mgcp_stat.c +++ b/gtk/mgcp_stat.c @@ -2,7 +2,7 @@ * mgcp-statistics for ethereal * Copyright 2003 Lars Roland * - * $Id: mgcp_stat.c,v 1.2 2003/04/23 03:51:03 guy Exp $ + * $Id: mgcp_stat.c,v 1.3 2003/04/23 05:37:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -41,7 +41,6 @@ #include "../register.h" #include "../plugins/mgcp/packet-mgcp.h" #include "../timestats.h" -#include "mgcp_stat.h" #include "compat_macros.h" #include "../simple_dialog.h" #include "../file.h" @@ -346,8 +345,16 @@ register_tap_listener_gtkmgcpstat(void) } -void +static void gtk_mgcpstat_cb(GtkWidget *w _U_, gpointer d _U_) { gtk_mgcpstat_init("mgcp,rtd"); } + +void +register_tap_menu_gtkmgcpstat(void) +{ + if (find_tap_id("mgcp")) + register_tap_menu_item("MGCP/RTD", gtk_mgcpstat_cb); +} + |