X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-syntax-window.c;h=8750e995b22244145101aad24b9f35a9e48d57c8;hb=109eccf01c32b5784f464de2d424fd7a9905123f;hp=13101f9394da34ab08bad3eed75398951d87cc87;hpb=0155c3a841f6b78263d2d1f308aeafc51bdf7ca9;p=pspp diff --git a/src/ui/gui/psppire-syntax-window.c b/src/ui/gui/psppire-syntax-window.c index 13101f9394..8750e995b2 100644 --- a/src/ui/gui/psppire-syntax-window.c +++ b/src/ui/gui/psppire-syntax-window.c @@ -19,10 +19,7 @@ #include #include -#include -#include -#include -#include +#include #include "language/lexer/lexer.h" #include "libpspp/encoding-guesser.h" @@ -647,13 +644,15 @@ create_syntax_window (void) gtk_widget_show (w); } -void +GtkWindow * open_syntax_window (const char *file_name, const gchar *encoding) { GtkWidget *se = psppire_syntax_window_new (NULL); if ( file_name) load_and_show_syntax_window (se, file_name, encoding); + + return GTK_WINDOW (se); }