New objects psppire-window and psppire-syntax-window.
[pspp-builds.git] / src / ui / gui / frequencies-dialog.c
index 802a4664e710b8a2352d9938af4dba1930e2c6d6..9d1215c4d0c2413c1e15de7f357b3dee8e267b05 100644 (file)
@@ -29,7 +29,7 @@
 #include <ui/gui/helper.h>
 #include <ui/gui/psppire-dialog.h>
 #include <ui/gui/psppire-var-store.h>
-#include <ui/gui/syntax-editor.h>
+#include <ui/gui/psppire-syntax-window.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -403,10 +403,11 @@ frequencies_dialog (GObject *o, gpointer data)
       {
        gchar *syntax = generate_syntax (&fd);
 
-       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);
       }