New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / t-test-independent-samples-dialog.c
index 9c3ea41daeb3f4511884ac6be6c6a359ad2af7f7..032600128dcff2fc999fabf339a25dd67953cfcc 100644 (file)
@@ -32,7 +32,7 @@
 #include <ui/syntax-gen.h>
 
 #include <language/syntax-string-source.h>
-#include "syntax-editor.h"
+#include "psppire-syntax-window.h"
 
 #include <gl/xalloc.h>
 
@@ -485,10 +485,11 @@ t_test_independent_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);
       }