New objects psppire-window and psppire-syntax-window.
[pspp] / src / ui / gui / t-test-paired-samples.c
index 9dd11287a976386a891b07969e01c4cf2fbe379f..c0207949d901804053b6b4e4d75aece006fba501 100644 (file)
@@ -19,7 +19,6 @@
 #include <gtk/gtk.h>
 #include <glade/glade.h>
 #include <language/syntax-string-source.h>
-#include <gtksheet/gtksheet.h>
 
 #include "data-editor.h"
 
@@ -32,7 +31,7 @@
 #include "dialog-common.h"
 #include "psppire-dialog.h"
 
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 
 #include "helper.h"
 
@@ -266,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);
       }