New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / transpose-dialog.c
index 621e196c2914ea43e9b2f5995be2acf8f1c0ea91..9945c9472f44add332ec725fa926368735a0118a 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 "dialog-common.h"
 
@@ -139,10 +139,11 @@ transpose_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (vs->dict, xml);
 
-       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);
       }