From 81ebec370d30901623ef24b2112e91f8004c6ad0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Apr 2003 05:37:23 +0000 Subject: 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 --- gtk/mgcp_stat.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gtk/mgcp_stat.c') 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 @@ -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); +} + -- cgit v1.2.3