aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_file_dlg.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-11 14:32:46 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-11 14:32:46 +0000
commit828f6baa4217fa7d49904754e6b9622ac98f4d60 (patch)
tree5f01353ab11e7e73e6aa068bfa9885f17f0d53bd /gtk/capture_file_dlg.c
parent93a0edf6dde248ee0b5ac03fd3f783145a6ac771 (diff)
Ensure we initialize all colorized filter text entries before we show the
widget, so we don't get wrong foreground color when using a dark theme. svn path=/trunk/; revision=26414
Diffstat (limited to 'gtk/capture_file_dlg.c')
-rw-r--r--gtk/capture_file_dlg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/capture_file_dlg.c b/gtk/capture_file_dlg.c
index c99fbe2552..4f9c3d7bad 100644
--- a/gtk/capture_file_dlg.c
+++ b/gtk/capture_file_dlg.c
@@ -501,6 +501,7 @@ file_open_cmd(GtkWidget *w)
gtk_box_pack_start(GTK_BOX(filter_hbox), filter_te, TRUE, TRUE, 3);
g_signal_connect(filter_te, "changed",
G_CALLBACK(filter_te_syntax_check_cb), NULL);
+ colorize_filter_te_as_empty(filter_te);
gtk_widget_show(filter_te);
gtk_tooltips_set_tip(tooltips, filter_te, "Enter a display filter.", NULL);
@@ -807,6 +808,7 @@ file_merge_cmd(GtkWidget *w)
gtk_box_pack_start(GTK_BOX(filter_hbox), filter_te, TRUE, TRUE, 3);
g_signal_connect(filter_te, "changed",
G_CALLBACK(filter_te_syntax_check_cb), NULL);
+ colorize_filter_te_as_empty(filter_te);
gtk_widget_show(filter_te);
gtk_tooltips_set_tip(tooltips, filter_te, "Enter a display filter.", NULL);