No need to disable filter-related widgets for packet capture if we're
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Feb 1999 02:53:24 +0000 (02:53 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Feb 1999 02:53:24 +0000 (02:53 +0000)
using wiretap - we use "libpcap" for packet capture, and it still lets
you filter.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@181 f5534014-38df-0310-8fa8-9805f1628bb7

capture.c

index cbc1ec90e453f55b31e87fe3f32e59360e26a28d..774fccf5108a6e70cdbb59f48a5b2c59a0a7ac7d 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
 /* capture.c
  * Routines for packet capture windows
  *
 /* 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>
  *
  * 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);
     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);
   
   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);
   
   /* File row: File: button and text entry */
   file_hb = gtk_hbox_new(FALSE, 3);