diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-11-21 23:16:26 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-11-21 23:16:26 +0000 |
commit | 8743a4a8a7613095d833e380744a358b7074b0c8 (patch) | |
tree | fdf1228846948ec5e1c08b7b50f1d81d1f379ffc /gtk/menu.c | |
parent | bd90493d46399161487bb21997af3e6450c5425d (diff) |
Remove the global packet_info called "pi". Dissectors now only
access their own "pinfo". A packet_info is stored in epan_dissect_t,
which is created for the dissection of a single packet.
GUI functions which need to access the packet_info of the currently
selected packet used to use "pi"; now they use cfile.edt->pi. cfile's
"edt" member is the epan_dissect_t of the currently-selected packet.
The functionality of blank_packetinfo() was moved into
dissect_packet(), as that's the only place that called blank_packetinfo(),
after a spurious call to blank_packetinfo() was removed from
packet_list_select_cb().
svn path=/trunk/; revision=4246
Diffstat (limited to 'gtk/menu.c')
-rw-r--r-- | gtk/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/menu.c b/gtk/menu.c index bf2d9cd19a..b24a6857bf 100644 --- a/gtk/menu.c +++ b/gtk/menu.c @@ -1,7 +1,7 @@ /* menu.c * Menu routines * - * $Id: menu.c,v 1.55 2001/07/17 05:44:58 hagbard Exp $ + * $Id: menu.c,v 1.56 2001/11/21 23:16:26 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -398,7 +398,7 @@ set_menus_for_selected_packet(gboolean have_selected_packet) set_menu_sensitivity("/Display/Expand All", have_selected_packet); set_menu_sensitivity("/Display/Show Packet In New Window", have_selected_packet); set_menu_sensitivity("/Tools/Follow TCP Stream", - have_selected_packet ? (pi.ipproto == 6) : FALSE); + have_selected_packet ? (cfile.edt->pi.ipproto == 6) : FALSE); set_menu_sensitivity("/Tools/Decode As...", have_selected_packet && decode_as_ok()); set_menu_sensitivity("/Resolve Name", |