aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rpc_progs.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-09-24 02:36:35 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-09-24 02:36:35 +0000
commit5fe6c91f35e3dc3c0a2fe9da803bf8f9be01334a (patch)
treeee96c6533894bae683e842a7c328f187e608bf78 /gtk/rpc_progs.c
parent173265a3dd127955641a4d11de563388d20833f6 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8525 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/rpc_progs.c')
-rw-r--r--gtk/rpc_progs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/rpc_progs.c b/gtk/rpc_progs.c
index d63d6c6451..d321630cf1 100644
--- a/gtk/rpc_progs.c
+++ b/gtk/rpc_progs.c
@@ -1,7 +1,7 @@
/* rpc_progs.c
* rpc_progs 2002 Ronnie Sahlberg
*
- * $Id: rpc_progs.c,v 1.11 2003/09/19 07:24:38 guy Exp $
+ * $Id: rpc_progs.c,v 1.12 2003/09/24 02:36:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -33,8 +33,9 @@
#endif
#include <gtk/gtk.h>
-#include "menu.h"
#include "epan/packet_info.h"
+#include "epan/epan.h"
+#include "menu.h"
#include "tap.h"
#include "../register.h"
#include "packet-rpc.h"