Refactor Data and Syntax Loading
[pspp-builds.git] / src / ui / gui / psppire.c
index 8a23346ce788667f611a5dede2ac4dd1cfff0b34..35dad91e5d49b50ba60d009e0d9d8745d4ea441d 100644 (file)
@@ -60,6 +60,7 @@
 
 #include <ui/source-init-opts.h>
 
+GtkRecentManager *the_recent_mgr = 0;
 PsppireDataStore *the_data_store = 0;
 PsppireVarStore *the_var_store = 0;
 
@@ -147,6 +148,9 @@ initialize (struct command_line_processor *clp, int argc, char **argv)
   journal_enable ();
   textdomain (PACKAGE);
 
+
+  the_recent_mgr = gtk_recent_manager_get_default ();
+
   the_data_window = psppire_data_window_new ();
 
   command_line_processor_replace_aux (clp, &post_init_argp, the_source_stream);
@@ -275,8 +279,7 @@ parse_non_options (int key, char *arg, struct argp_state *state)
     {
     case ARGP_KEY_ARG:
       {
-       psppire_data_window_load_file (PSPPIRE_DATA_WINDOW (the_data_window),
-                                      arg);
+       psppire_window_load (PSPPIRE_WINDOW (the_data_window), arg);
        break;
       }
     default: