aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-11-04 17:02:33 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-11-04 17:02:33 +0000
commitedc2689422d077335aaf1e16ef01da73b73e0d54 (patch)
treef55309d9881d05d3c7d9701c61fbba654209c415 /gtk
parent7e24821c3d40fa3389aa342025e6464c921b8e70 (diff)
Only have the option to turn off syntax check capture filter
if not using threads. svn path=/trunk/; revision=39732
Diffstat (limited to 'gtk')
-rw-r--r--gtk/prefs_capture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/prefs_capture.c b/gtk/prefs_capture.c
index 7c704732a7..e5e81ef5e4 100644
--- a/gtk/prefs_capture.c
+++ b/gtk/prefs_capture.c
@@ -100,7 +100,10 @@ GtkWidget*
capture_prefs_show(void)
{
GtkWidget *main_tb, *main_vb;
- GtkWidget *if_cbxe, *if_lb, *promisc_cb, *pcap_ng_cb, *sync_cb, *auto_scroll_cb, *show_info_cb, *syntax_check_filter_cb;
+ GtkWidget *if_cbxe, *if_lb, *promisc_cb, *pcap_ng_cb, *sync_cb, *auto_scroll_cb, *show_info_cb;
+#ifndef USE_THREADS
+ GtkWidget *syntax_check_filter_cb;
+#endif
GtkWidget *ifopts_lb, *ifopts_bt;
GList *if_list, *combo_list;
int err;
@@ -206,12 +209,14 @@ capture_prefs_show(void)
!prefs.capture_show_info);
g_object_set_data(G_OBJECT(main_vb), SHOW_INFO_KEY, show_info_cb);
+#ifndef USE_THREADS
/* Syntax check capture filter */
syntax_check_filter_cb = create_preference_check_button(main_tb, row++,
"Syntax check capture filter:",
"Syntax check capture filter. Turn this off if you experience delay when writing capture filters.",
prefs.capture_syntax_check_filter);
g_object_set_data(G_OBJECT(main_vb), SYNTAX_CHECK_FILTER_KEY, syntax_check_filter_cb);
+#endif
/* Show 'em what we got */
gtk_widget_show_all(main_vb);