X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-autorecode.c;h=2f1bdcbecbe7986ebd12e7b984b4d69bcd4fd0f6;hb=3990e1c55ccb6b246aff730309ae8efeaf7562da;hp=248f9ab2b3d7ba99738dcf7c0387c731eeb3e345;hpb=f4c63cb4df45ed66a05bbdffa4a0760f9b5c883b;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-autorecode.c b/src/ui/gui/psppire-dialog-action-autorecode.c index 248f9ab2b3..2f1bdcbecb 100644 --- a/src/ui/gui/psppire-dialog-action-autorecode.c +++ b/src/ui/gui/psppire-dialog-action-autorecode.c @@ -23,6 +23,7 @@ #include #include "psppire-dialog.h" #include "builder-wrapper.h" +#include "helper.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -192,7 +193,7 @@ on_change_clicked (GObject *obj, gpointer data) gtk_tree_model_row_changed (model, rows->data, &iter); finish: - g_list_foreach (rows, (GFunc) gtk_tree_path_free, NULL); + g_list_foreach (rows, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL); g_list_free (rows); var_unref (var); } @@ -206,7 +207,7 @@ on_entry_change (PsppireDialogActionAutorecode *rd) if (0 == strcmp ("", text)) valid = FALSE; - else if (psppire_dict_lookup_var (rd->dict, text)) + else if (psppire_dict_lookup_var (PSPPIRE_DIALOG_ACTION (rd)->dict, text)) valid = FALSE; else { @@ -275,7 +276,7 @@ on_selection_change (GtkTreeSelection *selection, gpointer data) gtk_widget_set_sensitive (rd->change_button, FALSE); } - g_list_foreach (rows, (GFunc) gtk_tree_path_free, NULL); + g_list_foreach (rows, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL); g_list_free (rows); }