aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main_filter_toolbar.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-08 16:01:50 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-08 16:01:50 +0000
commit1ffd72fce48d819697596e6d1a0b20c95de4ade1 (patch)
tree5e645a283c919e2efe796a5fba445aa51e780dfa /gtk/main_filter_toolbar.c
parentd9d041bc4311bf3c33d82eca4233ac7d6136792b (diff)
NEW_FILTER_COMBO_BOX: dfilter_combo_add_empty() doesn't appear to be needed: the entry field is empty even after populating thelist of recent filters.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33161 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main_filter_toolbar.c')
-rw-r--r--gtk/main_filter_toolbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/main_filter_toolbar.c b/gtk/main_filter_toolbar.c
index 1635d9f0ff..7a0cf10b95 100644
--- a/gtk/main_filter_toolbar.c
+++ b/gtk/main_filter_toolbar.c
@@ -386,9 +386,13 @@ dfilter_recent_combo_write_all(FILE *rf) {
/* empty the combobox entry field */
void
dfilter_combo_add_empty(void) {
- GtkWidget *filter_cm = g_object_get_data(G_OBJECT(top_level), E_DFILTER_CM_KEY);
+#ifdef NEW_FILTER_COMBO_BOX
+ /* This doesn't seem to be necessary with a Combo Box */
+#else
+ GtkWidget *filter_cm = g_object_get_data(G_OBJECT(top_level), E_DFILTER_CM_KEY);
gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(filter_cm)->entry), "");
+#endif
}