From d9d041bc4311bf3c33d82eca4233ac7d6136792b Mon Sep 17 00:00:00 2001 From: morriss Date: Tue, 8 Jun 2010 14:40:31 +0000 Subject: 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 --- gtk/main_filter_toolbar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk/main_filter_toolbar.c') 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; -- cgit v1.2.3