X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fregression-dialog.c;h=a47d73456f35ba4434305bf23d4b1a4fe120edcd;hb=d43a876351d94acce0e8d565ad2cb4d690727fe9;hp=4ee11fe9982ffd9a55ea4e1091aa7d9db081f795;hpb=c9d55afdda746d7e8b39e5a117c1644debbb0c75;p=pspp-builds.git diff --git a/src/ui/gui/regression-dialog.c b/src/ui/gui/regression-dialog.c index 4ee11fe9..a47d7345 100644 --- a/src/ui/gui/regression-dialog.c +++ b/src/ui/gui/regression-dialog.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -317,10 +317,11 @@ regression_dialog (GObject *o, gpointer data) { gchar *syntax = generate_syntax (&rd); - 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); }