* (This used to be a notebook page under "Preferences", hence the
* "prefs" in the file name.)
*
- * $Id: filter_prefs.c,v 1.29 2001/02/23 05:54:27 guy Exp $
+ * $Id: filter_prefs.c,v 1.30 2001/06/27 10:00:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
static void filter_name_te_destroy_cb(GtkWidget *, gpointer);
static void filter_filter_te_destroy_cb(GtkWidget *, gpointer);
+#ifdef HAVE_LIBPCAP
/* XXX - we can have one global dialog box for editing, and a bunch
of dialog boxes associated with browse buttons; we want the dialog
boxes associated with browse buttons to at least let you save the
gtk_object_set_data(GTK_OBJECT(caller), E_FILT_DIALOG_PTR_KEY,
filter_browse_w);
}
+#endif
/* Create a filter dialog for constructing a display filter.
filter_browse_w);
}
+#ifdef HAVE_LIBPCAP
static GtkWidget *global_cfilter_w;
/* Create a filter dialog for editing capture filters; this is to be used
*/
global_cfilter_w = filter_dialog_new(NULL, NULL, CFILTER_LIST, &args);
}
+#endif
static GtkWidget *global_dfilter_w;
a menu item; note that we no longer have one. */
switch (list) {
+#ifdef HAVE_LIBPCAP
case CFILTER_LIST:
g_assert(win == global_cfilter_w);
global_cfilter_w = NULL;
break;
+#endif
case DFILTER_LIST:
g_assert(win == global_dfilter_w);
/* menu.c
* Menu routines
*
- * $Id: menu.c,v 1.53 2001/06/05 07:38:37 guy Exp $
+ * $Id: menu.c,v 1.54 2001/06/27 10:00:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
{"/Edit/_Unmark All Frames", NULL, GTK_MENU_FUNC(unmark_all_frames_cb), 0, NULL},
{"/Edit/<separator>", NULL, NULL, 0, "<Separator>"},
{"/Edit/_Preferences...", NULL, GTK_MENU_FUNC(prefs_cb), 0, NULL},
+#ifdef HAVE_LIBPCAP
{"/Edit/_Capture Filters...", NULL, GTK_MENU_FUNC(cfilter_dialog_cb), 0, NULL},
+#endif
{"/Edit/_Display Filters...", NULL, GTK_MENU_FUNC(dfilter_dialog_cb), 0, NULL},
{"/Edit/P_rotocols...", NULL, GTK_MENU_FUNC(proto_cb), 0, NULL},
#ifdef HAVE_LIBPCAP