X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=3b4181ac71e44849145a8947651811974ebc85e3;hb=480a0746507ce73d26f528b56dc3ed80195096e0;hp=8ae97f1511970845178d947c5fae2f7419cf2a66;hpb=3a61659a8fc11c51ad5af02b20f5613dcde50382;p=pspp-builds.git diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 8ae97f15..3b4181ac 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include @@ -76,6 +78,8 @@ PsppireVarStore *var_store = 0; void create_icon_factory (void); +static struct source_stream *the_source_stream ; + int main(int argc, char *argv[]) { @@ -113,12 +117,13 @@ main(int argc, char *argv[]) glade_init(); - - fmt_init(); settings_init(); + the_source_stream = create_source_stream ( + fn_getenv_default ("STAT_INCLUDE_PATH", include_path) + ); - message_dialog_init(); + message_dialog_init (the_source_stream); the_dictionary = psppire_dict_new(); @@ -137,7 +142,7 @@ main(int argc, char *argv[]) if ( !xml ) return 1; data_editor = get_widget_assert(xml, "data_editor"); - gtk_window_set_icon_from_file(GTK_WINDOW(data_editor), + gtk_window_set_icon_from_file(GTK_WINDOW(data_editor), PKGDATADIR "/psppicon.png",0); /* connect the signals in the interface */ @@ -147,7 +152,7 @@ main(int argc, char *argv[]) data_sheet = GTK_SHEET(get_widget_assert(xml, "data_sheet")); gtk_sheet_set_model(var_sheet, G_SHEET_MODEL(var_store)); - + gtk_sheet_set_model(data_sheet, G_SHEET_MODEL(data_store)); if (filename) @@ -169,6 +174,7 @@ main(int argc, char *argv[]) /* start the event loop */ gtk_main(); + destroy_source_stream (the_source_stream); message_dialog_done(); settings_done();