projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DATASET: Improve error messages and coding style.
[pspp]
/
src
/
ui
/
gui
/
psppire-dialog-action-autorecode.c
diff --git
a/src/ui/gui/psppire-dialog-action-autorecode.c
b/src/ui/gui/psppire-dialog-action-autorecode.c
index 77376d6e6734150209a418c33a75585af6f182e3..2f1bdcbecbe7986ebd12e7b984b4d69bcd4fd0f6 100644
(file)
--- a/
src/ui/gui/psppire-dialog-action-autorecode.c
+++ b/
src/ui/gui/psppire-dialog-action-autorecode.c
@@
-23,6
+23,7
@@
#include <stdlib.h>
#include "psppire-dialog.h"
#include "builder-wrapper.h"
#include <stdlib.h>
#include "psppire-dialog.h"
#include "builder-wrapper.h"
+#include "helper.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
#include "gettext.h"
#define _(msgid) gettext (msgid)
@@
-192,8
+193,9
@@
on_change_clicked (GObject *obj, gpointer data)
gtk_tree_model_row_changed (model, rows->data, &iter);
finish:
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);
g_list_free (rows);
+ var_unref (var);
}
}
@@
-205,7
+207,7
@@
on_entry_change (PsppireDialogActionAutorecode *rd)
if (0 == strcmp ("", text))
valid = FALSE;
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
{
valid = FALSE;
else
{
@@
-274,7
+276,7
@@
on_selection_change (GtkTreeSelection *selection, gpointer data)
gtk_widget_set_sensitive (rd->change_button, FALSE);
}
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);
}
g_list_free (rows);
}