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/http_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/http_stat.c')
-rw-r--r-- | gtk/http_stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/http_stat.c b/gtk/http_stat.c index c578c27e00..158f537525 100644 --- a/gtk/http_stat.c +++ b/gtk/http_stat.c @@ -1,7 +1,7 @@ /* http_stat.c * http_stat 2003 Jean-Michel FAYARD * - * $Id: http_stat.c,v 1.4 2003/09/19 07:24:38 guy Exp $ + * $Id: http_stat.c,v 1.5 2003/09/24 02:36:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -27,8 +27,9 @@ #endif #include <gtk/gtk.h> -#include "menu.h" #include "epan/packet_info.h" +#include "epan/epan.h" +#include "menu.h" #include "simple_dialog.h" #include "tap.h" #include "../register.h" |