aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main_filter_toolbar.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-08 14:40:31 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-08 14:40:31 +0000
commitd9d041bc4311bf3c33d82eca4233ac7d6136792b (patch)
tree1ccf9426264eb4f9e10ef075bd16153121eaa7b2 /gtk/main_filter_toolbar.c
parent30f20f0092bf574a2f5e267b8c04da73968310f7 (diff)
dfilter_entry_match() (for NEW_FILTER_COMBO_BOX): unset value each time through the loop to avoid duplicate initialization warnings from glib.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33160 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main_filter_toolbar.c')
-rw-r--r--gtk/main_filter_toolbar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/main_filter_toolbar.c b/gtk/main_filter_toolbar.c
index f5f42522c2..1635d9f0ff 100644
--- a/gtk/main_filter_toolbar.c
+++ b/gtk/main_filter_toolbar.c
@@ -52,7 +52,7 @@
GtkWidget *main_display_filter_widget=NULL;
-#define NEW_FILTER_COMBO_BOX 1
+#define NEW_FILTER_COMBO_BOX 1
/* Run the current display filter on the current packet set, and
redisplay. */
static void
@@ -182,7 +182,7 @@ GtkWidget *filter_toolbar_new(void)
-1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), GTK_WIDGET(filter_add_expr_bt),
- "Add an expression to this filter string",
+ "Add an expression to this filter string",
"Private");
/* Create the "Clear" button */
@@ -195,7 +195,7 @@ GtkWidget *filter_toolbar_new(void)
-1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), GTK_WIDGET(filter_reset),
- "Clear this filter string and update the display",
+ "Clear this filter string and update the display",
"Private");
/* Create the "Apply" button */
@@ -295,6 +295,7 @@ dfilter_entry_match(GtkWidget *filter_cm, char *s, int *index)
return TRUE;
}
}
+ g_value_unset (&value);
}while (gtk_tree_model_iter_next (model, &iter));
*index = i;