#include "psppire-data-window.h"
#include "psppire.h"
+#include "widgets.h"
#include <libpspp/getl.h>
#include <unistd.h>
#include <language/syntax-string-source.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include "psppire-dict.h"
#include "psppire-var-store.h"
#include "psppire-data-store.h"
#include "message-dialog.h"
#include <ui/syntax-gen.h>
-
+#include "psppire-window-register.h"
#include "psppire-output-window.h"
#include <data/sys-file-reader.h>
bindtextdomain (PACKAGE, locale_dir);
- glade_init ();
+ preregister_widgets ();
gsl_set_error_handler_off ();
fn_init ();
}
+static void
+func (gpointer key, gpointer value, gpointer data)
+{
+ gboolean rv;
+ PsppireWindow *window = PSPPIRE_WINDOW (value);
+
+ g_signal_emit_by_name (window, "delete-event", 0, &rv);
+}
+
+void
+psppire_quit (void)
+{
+ PsppireWindowRegister *reg = psppire_window_register_new ();
+ psppire_window_register_foreach (reg, func, NULL);
+
+ gtk_main_quit ();
+}
+
struct icon_info
{