New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / split-file-dialog.c
index 22cdb9140483b5393010997bf40eb05f29c80961..96ecf5a6ebfe65626da254b19ad651799a90b44d 100644 (file)
@@ -23,7 +23,7 @@
 #include "data-editor.h"
 #include "dict-display.h"
 #include <language/syntax-string-source.h>
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 #include <data/dictionary.h>
 
 #include <gtk/gtk.h>
@@ -231,10 +231,11 @@ split_file_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (&sfd);
 
-       struct syntax_editor *se =
-         (struct syntax_editor *) window_create (WINDOW_SYNTAX, NULL);
+        GtkWidget *se = psppire_syntax_window_new ();
 
-       gtk_text_buffer_insert_at_cursor (se->buffer, syntax, -1);
+       gtk_text_buffer_insert_at_cursor (PSPPIRE_SYNTAX_WINDOW (se)->buffer, syntax, -1);
+
+       gtk_widget_show (se);
 
        g_free (syntax);
       }