aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-06-19 01:14:51 +0000
committerGuy Harris <guy@alum.mit.edu>1999-06-19 01:14:51 +0000
commit88e94a01867460d7c9bb9fd124daf0e0ee118e7f (patch)
tree6244acb9dd3df334b8eb9e094912181a00de33e4 /menu.c
parent6a971ea03c4d73bcf28ade8d63cd6879e662dfeb (diff)
Added "Capture" and "Display" menus; "Capture" has a "Start" item, which
is the same as "Tools/Capture", and "Display" has an "Options" item, which pops up a dialog box to let you change the "default" time-stamp column display format on the fly (the "default" is what the "-t" command-line option sets), and have the display change when you do that. Made infrastructure changes to make the immediate display update work. Removed some unused functions, declared some functions used only in the file in which they're defined "static", and removed some unnecessary #includes. svn path=/trunk/; revision=317
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index c8f50f47aa..5fa7f395c7 100644
--- a/menu.c
+++ b/menu.c
@@ -1,7 +1,7 @@
/* menu.c
* Menu routines
*
- * $Id: menu.c,v 1.19 1999/06/15 04:48:57 guy Exp $
+ * $Id: menu.c,v 1.20 1999/06/19 01:14:51 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -38,6 +38,7 @@
#include "menu.h"
#include "packet.h"
#include "capture.h"
+#include "display.h"
#include "prefs.h"
#include "print.h"
#include "follow.h"
@@ -93,8 +94,12 @@ static GtkItemFactoryEntry menu_items[] =
{"/Edit/Find", "<control>F", NULL, 0, NULL},
{"/Edit/<separator>", NULL, NULL, 0, "<Separator>"},
{"/Edit/_Preferences...", NULL, GTK_MENU_FUNC(prefs_cb), E_PR_PG_NONE, NULL},
+ {"/_Capture", NULL, NULL, 0, "<Branch>" },
+ {"/Capture/_Start...", "<control>K", GTK_MENU_FUNC(capture_prep_cb), 0, NULL},
+ {"/_Display", NULL, NULL, 0, "<Branch>" },
+ {"/Display/_Options...", NULL, GTK_MENU_FUNC(display_opt_cb), 0, NULL},
{"/_Tools", NULL, NULL, 0, "<Branch>" },
- {"/Tools/_Capture...", "<control>K", GTK_MENU_FUNC(capture_prep_cb), 0, NULL},
+ {"/Tools/_Capture...", NULL, GTK_MENU_FUNC(capture_prep_cb), 0, NULL},
{"/Tools/_Follow TCP Stream", NULL, GTK_MENU_FUNC(follow_stream_cb), 0, NULL},
{"/Tools/Graph", NULL, NULL, 0, NULL},
{"/_Help", NULL, NULL, 0, "<LastBranch>" },
@@ -126,7 +131,9 @@ static GtkMenuEntry menu_items[] =
{"<Main>/Edit/Find", "<control>F", NULL, NULL},
{"<Main>/Edit/<separator>", NULL, NULL, NULL},
{"<Main>/Edit/Preferences...", NULL, prefs_cb, (gpointer) E_PR_PG_NONE},
- {"<Main>/Tools/Capture...", "<control>K", capture_prep_cb, NULL},
+ {"<Main>/Capture/Start...", "<control>K", capture_prep_cb, NULL},
+ {"<Main>/Display/Options...", NULL, display_opt_cb, NULL},
+ {"<Main>/Tools/Capture...", NULL, capture_prep_cb, NULL},
{"<Main>/Tools/Follow TCP Stream", NULL, follow_stream_cb, NULL},
{"<Main>/Tools/Graph", NULL, NULL, NULL},
{"<Main>/Help/About Ethereal...", NULL, about_ethereal, NULL}