aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/io_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-04-23 05:37:23 +0000
committerGuy Harris <guy@alum.mit.edu>2003-04-23 05:37:23 +0000
commit81ebec370d30901623ef24b2112e91f8004c6ad0 (patch)
treed7edc8df42ad1945a9e96f593dd54f242937773b /gtk/io_stat.c
parent4cfd8b0f360efd2d867333b80f201d13c630f7c8 (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/io_stat.c')
-rw-r--r--gtk/io_stat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c
index f93d5d8d71..ccb7238a3f 100644
--- a/gtk/io_stat.c
+++ b/gtk/io_stat.c
@@ -1,7 +1,7 @@
/* io_stat.c
* io_stat 2002 Ronnie Sahlberg
*
- * $Id: io_stat.c,v 1.19 2003/04/23 03:51:02 guy Exp $
+ * $Id: io_stat.c,v 1.20 2003/04/23 05:37:22 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -43,7 +43,6 @@
#include "epan/packet_info.h"
#include "../tap.h"
#include "../register.h"
-#include "io_stat.h"
#include "simple_dialog.h"
#include "../globals.h"
#include "../color.h"
@@ -1636,7 +1635,7 @@ init_io_stat_window(io_stat_t *io)
}
-void
+static void
gtk_iostat_cb(GtkWidget *w _U_, gpointer d _U_)
{
gtk_iostat_init(NULL);
@@ -1653,3 +1652,8 @@ register_tap_listener_gtk_iostat(void)
register_ethereal_tap("io,stat", gtk_iostat_init);
}
+void
+register_tap_menu_gtkiostat(void)
+{
+ register_tap_menu_item("IO/IO-Stat", gtk_iostat_cb);
+}