}
-void
+GtkWindow *
psppire_preload_file (const gchar *file)
{
const gchar *local_encoding = "UTF-8";
const char *filename = fh_get_file_name (fh);
int retval = any_reader_detect (fh, NULL);
-
+
+ GtkWindow *w = NULL;
/* Check to see if the file is a .sav or a .por file. If not
assume that it is a syntax file */
if (retval == 1)
- open_data_window (NULL, filename, NULL, NULL);
+ w = open_data_window (NULL, filename, NULL, NULL);
else if (retval == 0)
{
create_data_window ();
- open_syntax_window (filename, NULL);
+ w = open_syntax_window (filename, NULL);
}
fh_unref (fh);
+ return w;
}