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/rpc_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/rpc_stat.c')
-rw-r--r-- | gtk/rpc_stat.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c index e5b6d14ef9..3800c32f32 100644 --- a/gtk/rpc_stat.c +++ b/gtk/rpc_stat.c @@ -1,7 +1,7 @@ /* rpc_stat.c * rpc_stat 2002 Ronnie Sahlberg * - * $Id: rpc_stat.c,v 1.7 2003/04/23 03:51:03 guy Exp $ + * $Id: rpc_stat.c,v 1.8 2003/04/23 05:37:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -33,11 +33,11 @@ #endif #include <gtk/gtk.h> +#include "menu.h" #include "epan/packet_info.h" #include "simple_dialog.h" #include "tap.h" #include "../register.h" -#include "rpc_stat.h" #include "packet-rpc.h" #include "../globals.h" #include "compat_macros.h" @@ -507,7 +507,7 @@ dlg_destroy_cb(void) dlg=NULL; } -void +static void gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_) { int i; @@ -606,3 +606,9 @@ register_tap_listener_gtkrpcstat(void) { register_ethereal_tap("rpc,rtt,", gtk_rpcstat_init); } + +void +register_tap_menu_gtkrpcstat(void) +{ + register_tap_menu_item("ONC-RPC/RTT", gtk_rpcstat_cb); +} |