New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / recode-dialog.c
index 314367462e6f403d691f2c9896972086b610075f..af6cbfa0b6043bfab0bb77259ffef3d2f29431e0 100644 (file)
@@ -33,7 +33,7 @@
 #include <ui/gui/helper.h>
 #include <ui/gui/psppire-dialog.h>
 #include <ui/gui/psppire-var-store.h>
-#include <ui/gui/syntax-editor.h>
+#include <ui/gui/psppire-syntax-window.h>
 #include <ui/syntax-gen.h>
 
 #include "psppire-acr.h"
@@ -1095,10 +1095,11 @@ recode_dialog (struct data_editor *de, gboolean diff)
       {
        gchar *syntax = generate_syntax (&rd);
 
-       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);
       }