aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/uat_gui.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-06-22 11:34:48 -0400
committerMichael Mann <mmann78@netscape.net>2017-06-26 02:44:05 +0000
commit1b7f5d9f798634770656a82aaa2df30f7f01a9b0 (patch)
treed6f5e76b402f8125bb2ca25c6c88c6b99408880b /ui/gtk/uat_gui.c
parent395775acce1ef9624fdf2030179683f37a27cd59 (diff)
Convert filter expressions preference data to a UAT.
The filter expressions data was shoved into the preference file in a very loose, non-arrayed form. It's much easier to manage in code (and for users in a separate file) as a UAT. The GTK GUI was hacked to use the existing UAT dialog rather than rewrite the pref_filter_expressions.c to support a UAT. Should be okay since it's deprecated. Change-Id: I688cebb4b7b6594878c1398365e79a205f1902d9 Ping-Bug: 13814 Reviewed-on: https://code.wireshark.org/review/22354 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/uat_gui.c')
-rw-r--r--ui/gtk/uat_gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gtk/uat_gui.c b/ui/gtk/uat_gui.c
index 13c89489d9..d63a153ea8 100644
--- a/ui/gtk/uat_gui.c
+++ b/ui/gtk/uat_gui.c
@@ -292,6 +292,8 @@ static gboolean uat_dlg_cb(GtkWidget *win _U_, gpointer user_data) {
break;
case PT_TXTMOD_STRING:
+ case PT_TXTMOD_BOOL:
+ case PT_TXTMOD_DISPLAY_FILTER:
text = gtk_entry_get_text(GTK_ENTRY(e));
len = (unsigned) strlen(text);
break;
@@ -515,6 +517,8 @@ static void uat_edit_dialog(uat_t *uat, gint row, gboolean copy) {
case PT_TXTMOD_NONE:
case PT_TXTMOD_STRING:
case PT_TXTMOD_HEXBYTES:
+ case PT_TXTMOD_DISPLAY_FILTER:
+ case PT_TXTMOD_BOOL:
entry = gtk_entry_new();
if (! dd->is_new || copy) {
gtk_entry_set_text(GTK_ENTRY(entry), text);