aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/fc_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-24 02:36:35 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-24 02:36:35 +0000
commit4e64afcb25c1a0b3e83bb5f1eaa8452649144314 (patch)
treeee96c6533894bae683e842a7c328f187e608bf78 /gtk/fc_stat.c
parentdd628e00c742885fc3b212e00942880f81956bf0 (diff)
Pass a pointer to a "capture_file" structure to
"set_menus_for_selected_packet()" and "set_menus_for_selected_tree_row()", and have them decide whether to enable or disable menu items based on whether that structure indicates that a packet or field is selected and, if one is, on its properties. Pass to the "selected packet enabled" routine for a menu item the "frame_data" and "edt" members of the "capture_file" structure, and pass to the "selected tree row enabled" routine the "field_info" member of that structure. Clear "cf->current_frame" if no packet is selected. svn path=/trunk/; revision=8525
Diffstat (limited to 'gtk/fc_stat.c')
-rw-r--r--gtk/fc_stat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/fc_stat.c b/gtk/fc_stat.c
index 3fa13e158b..2de4a8b40e 100644
--- a/gtk/fc_stat.c
+++ b/gtk/fc_stat.c
@@ -1,7 +1,7 @@
/* fc_stat.c
* fc_stat 2003 Ronnie Sahlberg
*
- * $Id: fc_stat.c,v 1.10 2003/09/19 07:24:38 guy Exp $
+ * $Id: fc_stat.c,v 1.11 2003/09/24 02:36:34 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -34,8 +34,9 @@
#include <gtk/gtk.h>
#include <string.h>
-#include "menu.h"
#include "../epan/packet_info.h"
+#include "../epan/epan.h"
+#include "menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../packet-fc.h"