New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / variable-info-dialog.c
index 533021e762cb45f73e1a996444cde856e725689a..dcd1b911fcbe79d71b746598ff12cba2558ce016 100644 (file)
@@ -29,7 +29,7 @@
 #include "helper.h"
 
 #include <language/syntax-string-source.h>
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 
 
 #include <gettext.h>
@@ -215,10 +215,11 @@ variable_info_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (GTK_TREE_VIEW (treeview));
 
-       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);
       }