X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-selector.c;h=678c2a749f240af62e12219cb58b4006ae15af8f;hb=7f0d18e1c856e42ef8fc910d785baace2900f7e6;hp=cada9ef683305e4f2bf69b778869bef8a38edb2c;hpb=dcd593ebc418681f2a7f14795b13f94eaa95ccaf;p=pspp diff --git a/src/ui/gui/psppire-selector.c b/src/ui/gui/psppire-selector.c index cada9ef683..678c2a749f 100644 --- a/src/ui/gui/psppire-selector.c +++ b/src/ui/gui/psppire-selector.c @@ -62,6 +62,7 @@ #include "psppire-dict.h" #include "psppire-select-dest.h" #include "psppire-means-layer.h" +#include "helper.h" #include @@ -100,6 +101,7 @@ on_row_inserted (PsppireSelector *selector) static GObjectClass * parent_class = NULL; +#if DEBUG static void dump_hash_entry (gpointer key, gpointer value, gpointer obj) { @@ -124,7 +126,7 @@ psppire_selector_show_map (PsppireSelector *obj) g_print ("%s %p\n", __FUNCTION__, obj); g_hash_table_foreach (class->source_hash, dump_hash_entry, obj); } - +#endif static void @@ -574,7 +576,7 @@ de_select_tree_model (GtkTreeSelection *selection, GtkTreeModel *model) } /* Delete list of RowRefs and its contents */ - g_list_foreach (selected_rows, (GFunc) gtk_tree_row_reference_free, NULL); + g_list_foreach (selected_rows, GFUNC_COMPAT_CAST (gtk_tree_row_reference_free), NULL); g_list_free (selected_rows); } @@ -661,7 +663,7 @@ select_selection (PsppireSelector *selector) ); } - g_list_foreach (selected_rows, (GFunc) gtk_tree_path_free, NULL); + g_list_foreach (selected_rows, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL); g_list_free (selected_rows); refilter (selector);