diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-24 02:36:35 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-24 02:36:35 +0000 |
commit | 4e64afcb25c1a0b3e83bb5f1eaa8452649144314 (patch) | |
tree | ee96c6533894bae683e842a7c328f187e608bf78 /gtk/smb_stat.c | |
parent | dd628e00c742885fc3b212e00942880f81956bf0 (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/smb_stat.c')
-rw-r--r-- | gtk/smb_stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/smb_stat.c b/gtk/smb_stat.c index 04878af25b..b00dad787d 100644 --- a/gtk/smb_stat.c +++ b/gtk/smb_stat.c @@ -1,7 +1,7 @@ /* smb_stat.c * smb_stat 2003 Ronnie Sahlberg * - * $Id: smb_stat.c,v 1.18 2003/09/19 07:24:38 guy Exp $ + * $Id: smb_stat.c,v 1.19 2003/09/24 02:36:35 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 "../smb.h" |