No need to disable filter-related widgets for packet capture if we're

using wiretap - we use "libpcap" for packet capture, and it still lets
you filter.

svn path=/trunk/; revision=181
This commit is contained in:
Guy Harris 1999-02-02 02:53:24 +00:00
parent 71629b5409
commit 722424f987
1 changed files with 1 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
* $Id: capture.c,v 1.16 1998/12/29 04:05:32 gerald Exp $
* $Id: capture.c,v 1.17 1999/02/02 02:53:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -217,19 +217,12 @@ capture_prep_cb(GtkWidget *w, gpointer d) {
GTK_SIGNAL_FUNC(prefs_cb), (gpointer) E_PR_PG_FILTER);
gtk_box_pack_start(GTK_BOX(filter_hb), filter_bt, FALSE, TRUE, 0);
gtk_widget_show(filter_bt);
#ifdef WITH_WIRETAP
gtk_widget_set_sensitive(filter_bt, FALSE);
#endif
filter_te = gtk_entry_new();
if (cf.cfilter) gtk_entry_set_text(GTK_ENTRY(filter_te), cf.cfilter);
gtk_object_set_data(GTK_OBJECT(filter_bt), E_FILT_TE_PTR_KEY, filter_te);
gtk_box_pack_start(GTK_BOX(filter_hb), filter_te, TRUE, TRUE, 0);
gtk_widget_show(filter_te);
#ifdef WITH_WIRETAP
gtk_widget_set_sensitive(filter_te, FALSE);
gtk_entry_set_text(GTK_ENTRY(filter_te), "<unavailable>");
#endif
/* File row: File: button and text entry */
file_hb = gtk_hbox_new(FALSE, 3);