X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcomments-dialog.c;h=6b2e800779ce4a300672c75853e4a7e949a1ccb4;hb=d43a876351d94acce0e8d565ad2cb4d690727fe9;hp=f1a4936e6de06e9df95abcff13966f09faa8705e;hpb=c9d55afdda746d7e8b39e5a117c1644debbb0c75;p=pspp-builds.git diff --git a/src/ui/gui/comments-dialog.c b/src/ui/gui/comments-dialog.c index f1a4936e..6b2e8007 100644 --- a/src/ui/gui/comments-dialog.c +++ b/src/ui/gui/comments-dialog.c @@ -20,7 +20,7 @@ #include "helper.h" #include "data-editor.h" #include -#include "syntax-editor.h" +#include "psppire-syntax-window.h" #include "psppire-var-store.h" #include @@ -177,10 +177,11 @@ comments_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); }