New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / t-test-paired-samples.c
index e89e6d74733d01b1033220c1da216ab51c13f244..c0207949d901804053b6b4e4d75aece006fba501 100644 (file)
@@ -31,7 +31,7 @@
 #include "dialog-common.h"
 #include "psppire-dialog.h"
 
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 
 #include "helper.h"
 
@@ -265,10 +265,11 @@ t_test_paired_samples_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (&tt_d);
 
-       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);
       }