New objects psppire-window and psppire-syntax-window.
[pspp] / src / ui / gui / compute-dialog.c
index 5d40d21639bbe68fd9d06d6ea35dd9f50fba4a40..a887876fed39ca7ce034c9832760409a53eeab8d 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <language/expressions/public.h>
 #include <language/syntax-string-source.h>
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 
 static void function_list_populate (GtkTreeView *tv);
 
@@ -457,10 +457,11 @@ compute_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (&scd);
 
-       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);
       }