X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=06b1488762f9ba195e98210291b9041619996b51;hb=1c9e32859d6da9505e1904d5b0f95cfd276a734e;hp=d636ab4960781ddc911e0dc813917f9e85de58d4;hpb=d04dad1257adf4f4e5fb7c121de666f238c6efd8;p=pspp-builds.git diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index d636ab49..06b14887 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -68,10 +68,9 @@ replace_dictionary (struct dictionary *d) static void replace_casereader (struct casereader *s) { - struct datasheet *datasheet = datasheet_create (s); + PsppireCaseFile *pcf = psppire_case_file_new (s); - psppire_case_file_replace_datasheet (the_data_store->case_file, - datasheet); + psppire_data_store_set_case_file (the_data_store, pcf); } void @@ -100,11 +99,12 @@ initialize (void) the_dataset = create_dataset (replace_casereader, replace_dictionary); + + message_dialog_init (the_source_stream); - dictionary = psppire_dict_new_from_dict ( - dataset_dict (the_dataset) - ); + dictionary = psppire_dict_new_from_dict (dataset_dict (the_dataset)); + bind_textdomain_codeset (PACKAGE, "UTF-8"); @@ -113,10 +113,7 @@ initialize (void) the_var_store = psppire_var_store_new (dictionary); the_data_store = psppire_data_store_new (dictionary); - - - proc_set_active_file_data (the_dataset, - datasheet_make_reader (the_data_store->case_file->datasheet)); + replace_casereader (NULL); create_icon_factory ();