aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1998-11-18 03:17:18 +0000
committerGerald Combs <gerald@wireshark.org>1998-11-18 03:17:18 +0000
commit369407d7b0e845cb8aa650664d03ca7bdb18db7c (patch)
tree7848f7e03a7f96f6f8f285456f03d1aa82ecbd33 /capture.c
parent2ec7b2e63d9db6aef8b32b1ff3f4712610122082 (diff)
* Disable filter-related widgets if we're using wiretap.
svn path=/trunk/; revision=105
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/capture.c b/capture.c
index a36123ce79..9c411b32fe 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.11 1998/11/17 02:17:27 guy Exp $
+ * $Id: capture.c,v 1.12 1998/11/18 03:17:17 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -215,12 +215,19 @@ 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);