diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-23 01:15:14 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-23 01:15:14 +0000 |
commit | 5399d02752429a2de13c485cdced44be02598a79 (patch) | |
tree | 96aeef9bc4983b09b7d82e1d53daba1a8f78698e /gtk | |
parent | d171cddc772a709e1f44040e2f9c2b5268fd3754 (diff) |
Add filter syntax check to custom column filter field. This will allow
filter expressions such as filter == value, which won't work as a custom
column. We may need to modify its behavior to prevent entire expressions
from being entered. For the time being though, it does check the filter
syntax itself as well.
svn path=/trunk/; revision=24441
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/column_prefs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/column_prefs.c b/gtk/column_prefs.c index fb37645c33..f5cc6e412e 100644 --- a/gtk/column_prefs.c +++ b/gtk/column_prefs.c @@ -36,6 +36,7 @@ #include "compat_macros.h" #include "gui_utils.h" #include "packet_list.h" +#include "filter_dlg.h" static GtkWidget *column_l, *del_bt, *title_te, *field_te, *fmt_m, *up_bt, *dn_bt; static gint cur_fmt, cur_row; @@ -285,6 +286,7 @@ column_prefs_show() { gtk_widget_show(props_hb); field_te = gtk_entry_new(); + SIGNAL_CONNECT(field_te, "changed", filter_te_syntax_check_cb, NULL); gtk_table_attach_defaults(GTK_TABLE(tb), field_te, 2, 3, 1, 2); gtk_widget_set_sensitive(field_te, FALSE); gtk_widget_hide(field_te); |