G_CALLBACK (open_syntax_window),
window);
-
+#if 0
g_signal_connect (get_widget_assert (xml,"file_new_data"),
"activate",
G_CALLBACK (create_data_window),
window);
+#endif
g_signal_connect (get_widget_assert (xml,"help_about"),
"activate",
PsppireWindow *window = PSPPIRE_WINDOW (data);
GtkWidget *item ;
- if ( !GTK_WIDGET_REALIZED (window))
- return;
-
item = g_hash_table_lookup (window->menuitem_table, key);
g_hash_table_remove (window->menuitem_table, key);
- gtk_container_remove (GTK_CONTAINER (window->menu), item);
+ if (GTK_IS_CONTAINER (window->menu))
+ gtk_container_remove (GTK_CONTAINER (window->menu), item);
}
static void
struct source_stream *the_source_stream ;
struct dataset * the_dataset = NULL;
+static GtkWidget *the_data_window;
static void
replace_casereader (struct casereader *s)
the_data_store = psppire_data_store_new (dictionary);
replace_casereader (NULL);
-
-
create_icon_factory ();
outp_configure_driver_line (
/* Ignore alarm clock signals */
signal (SIGALRM, SIG_IGN);
+ the_data_window = psppire_data_window_new ();
+
command_line_processor_replace_aux (clp, &post_init_argp, the_source_stream);
command_line_processor_replace_aux (clp, &non_option_argp, the_source_stream);
command_line_processor_parse (clp, argc, argv);
- create_data_window ();
-
execute_syntax (create_syntax_string_source (""));
+
+ gtk_widget_show (the_data_window);
}
ERRMODE_CONTINUE);
ds_destroy (&syntax);
+
+ psppire_window_set_filename (the_data_window, arg);
+
break;
}
default: