X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;fp=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=3c3bd9f42c2a26fdf979965b02fff56b423f0d33;hb=d43a876351d94acce0e8d565ad2cb4d690727fe9;hp=edaa3e42a1f1a5c0185006feef0dfb8199f168f2;hpb=c9d55afdda746d7e8b39e5a117c1644debbb0c75;p=pspp-builds.git diff --git a/src/ui/gui/crosstabs-dialog.c b/src/ui/gui/crosstabs-dialog.c index edaa3e42..3c3bd9f4 100644 --- a/src/ui/gui/crosstabs-dialog.c +++ b/src/ui/gui/crosstabs-dialog.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -495,10 +495,11 @@ crosstabs_dialog (GObject *o, gpointer data) { gchar *syntax = generate_syntax (&cd); - 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); }