summaryrefslogtreecommitdiff
path: root/gtk/gtkglobals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-01 12:03:42 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-01 12:03:42 +0000
commitc6e50f9bc98d10c007bbe11e49dd8c3211ce2479 (patch)
tree54f55938c6c723b5f6bd37cce61a4e73587f0b5e /gtk/gtkglobals.h
parent5549f62efd72450189dad088a7206ed4b6a1bfb6 (diff)
downloadwireshark-c6e50f9bc98d10c007bbe11e49dd8c3211ce2479.tar.gz
Split "filter_dialog_cb()" into "filter_dialog_cb()", which pops up a
"global" dialog box when "Edit:Filters" is selected, so that the list of filters can be edited, and "filter_browse_cb()", which pops up a dialog box associated with a "Filter:" button and a text entry widget attached to that button, so that a filter can be selected or saved (although it also supports the same editing that the "global" dialog box does). Have "filter_dialog_cb()" connect the window in which the "Filter:" button lives and the filter dialog box, so that: if the window in which the "Filter:" button lives goes away, so does the filter dialog box (as it no longer has a text widget into which it can stuff the selected filter); if the "Filter:" button is clicked when there's already a filter dialog box open, we just reactivate that existing dialog box rather than popping up a new one. Also keep a pointer to the "global" filter dialog box, so that we also arrange that there's only one of them (by reactivating the existing on if "Edit:Filters" is selected when there's already a "global" filter dialog box open). Keep around pointers to the dialog boxes that contain the "Filter:" buttons, so that we can arrange that there be only one of them (that was a side-effect of an earlier attempt at fixing the problems described above, but it's still useful for keeping multiple competing dialog boxes from being open - there's more of that to be done). Make the pointer to the "Open Capture File" dialog box widget static to "file_dlg.c" - nobody outside of "file_dlg.c cares about it. svn path=/trunk/; revision=1774
Diffstat (limited to 'gtk/gtkglobals.h')
-rw-r--r--gtk/gtkglobals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h
index b09a288c6a..d6763c9f32 100644
--- a/gtk/gtkglobals.h
+++ b/gtk/gtkglobals.h
@@ -1,7 +1,7 @@
/* gtkglobals.h
* GTK-related Global defines, etc.
*
- * $Id: gtkglobals.h,v 1.7 2000/03/02 07:05:55 guy Exp $
+ * $Id: gtkglobals.h,v 1.8 2000/04/01 12:03:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -30,7 +30,7 @@
#include <gtk/gtk.h>
#endif
-extern GtkWidget *top_level, *file_sel, *packet_list, *tree_view,
+extern GtkWidget *top_level, *packet_list, *tree_view,
*byte_view, *prog_bar, *info_bar;
extern GdkFont *m_r_font, *m_b_font;