From 4cfd8b0f360efd2d867333b80f201d13c630f7c8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Apr 2003 03:51:03 +0000 Subject: Allow taps to have menu item registration routines; the menu item registration routines, for taps with menu items (taps that can be run from the "Tools->Statistics" menu), create the menu item for the tap. "make-tapreg-dotc" constructs a "register_all_tap_menus()" function that calls all the tap menu item registration routines it finds, and Ethereal calls that routine after the main window has been constructed (so that the main menu exists, as the menu items are added to it). (Tethereal doesn't call it.) Get rid of the "menu" and "menu_init" arguments to "register_ethereal_tap"; the menu item is registered in the tap's menu item registration routine, not in its main registration routine. Have the RTP GUI tap register its menu item that way, rather than by having it compiled into "gtk/menu.c". (We're not ready yet to have taps whose menu items are under a submenu register themselves in that fashion, as "register_tap_menu_item()" can't yet create submenus.) svn path=/trunk/; revision=7540 --- gtk/dcerpc_stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/dcerpc_stat.c') diff --git a/gtk/dcerpc_stat.c b/gtk/dcerpc_stat.c index 7003e56ded..064332894d 100644 --- a/gtk/dcerpc_stat.c +++ b/gtk/dcerpc_stat.c @@ -1,7 +1,7 @@ /* dcerpc_stat.c * dcerpc_stat 2002 Ronnie Sahlberg * - * $Id: dcerpc_stat.c,v 1.3 2002/11/11 15:39:05 oabad Exp $ + * $Id: dcerpc_stat.c,v 1.4 2003/04/23 03:51:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -610,5 +610,5 @@ gtk_dcerpcstat_cb(GtkWidget *w _U_, gpointer d _U_) void register_tap_listener_gtkdcerpcstat(void) { - register_ethereal_tap("dcerpc,rtt,", gtk_dcerpcstat_init, NULL, NULL); + register_ethereal_tap("dcerpc,rtt,", gtk_dcerpcstat_init); } -- cgit v1.2.3