aboutsummaryrefslogtreecommitdiffstats
path: root/menu.h
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 /menu.h
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 'menu.h')
-rw-r--r--menu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.h b/menu.h
index a676e8d1b0..27fd1ddaf7 100644
--- a/menu.h
+++ b/menu.h
@@ -2,7 +2,7 @@
* Definitions for menu routines with toolkit-independent APIs but
* toolkit-dependent implementations.
*
- * $Id: menu.h,v 1.10 2002/08/28 21:00:06 jmayer Exp $
+ * $Id: menu.h,v 1.11 2003/09/24 02:36:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -49,11 +49,11 @@ void set_menus_for_capture_in_progress(gboolean);
void set_menus_for_captured_packets(gboolean);
/* Enable or disable menu items based on whether a packet is selected. */
-void set_menus_for_selected_packet(gboolean);
+void set_menus_for_selected_packet(capture_file *cf);
/* Enable or disable menu items based on whether a tree row is selected
and and on whether a "Match Selected" can be done. */
-void set_menus_for_selected_tree_row(gboolean);
+void set_menus_for_selected_tree_row(capture_file *cf);
#ifdef __cplusplus
}