X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpage-formats.c;h=f5a190c78c3d1f21ffcb07882ec77a94c2b9fb90;hb=03a7b96a587a58bda342b4eb5ce5f935880ba2b7;hp=5b06bcb3d4fac2ad1d1d9d1d23dddc637621efcc;hpb=19cf39ef8802208ca67fc3e1cf12ce4b239aaabf;p=pspp diff --git a/src/ui/gui/page-formats.c b/src/ui/gui/page-formats.c index 5b06bcb3d4..f5a190c78c 100644 --- a/src/ui/gui/page-formats.c +++ b/src/ui/gui/page-formats.c @@ -35,7 +35,6 @@ #include "libpspp/i18n.h" #include "libpspp/line-reader.h" #include "libpspp/message.h" -#include "ui/gui/checkbox-treeview.h" #include "ui/gui/dialog-common.h" #include "ui/gui/executor.h" #include "ui/gui/helper.h" @@ -47,7 +46,6 @@ #include "ui/gui/psppire-var-sheet.h" #include "ui/gui/psppire-scanf.h" -#include "gl/error.h" #include "gl/intprops.h" #include "gl/xalloc.h" @@ -68,7 +66,10 @@ struct formats_page /* The "formats" page of the assistant. */ static void on_variable_change (PsppireDict *dict, int idx, + unsigned int what, + const struct variable *oldvar, struct import_assistant *); + static void clear_modified_vars (struct import_assistant *); /* Initializes IA's formats substructure. */ @@ -163,7 +164,7 @@ prepare_formats_page (struct import_assistant *ia) fmt_guesser_destroy (fg); psppire_dict = psppire_dict_new_from_dict (dict); - g_signal_connect (psppire_dict, "variable_changed", + g_signal_connect (psppire_dict, "variable-changed", G_CALLBACK (on_variable_change), ia); ia->dict = dict; ia->formats->psppire_dict = psppire_dict; @@ -231,6 +232,7 @@ reset_formats_page (struct import_assistant *ia) dictionary. */ static void on_variable_change (PsppireDict *dict, int dict_idx, + unsigned int what, const struct variable *oldvar, struct import_assistant *ia) { struct formats_page *p = ia->formats;