X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Fdescriptives-dialog.c;h=aaed7eee2c8b2dd7fd04e265b183e5521eae3f38;hb=4398d3a1a881c6cafaeb0cbd11f56bd51d904c51;hp=f909ed02328e166311a1401a08a92af7d300c741;hpb=c7b5e2dcfaeb0221b801dc3cc9fa1ab9a4ec5861;p=pspp-builds.git diff --git a/src/ui/gui/descriptives-dialog.c b/src/ui/gui/descriptives-dialog.c index f909ed02..aaed7eee 100644 --- a/src/ui/gui/descriptives-dialog.c +++ b/src/ui/gui/descriptives-dialog.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -263,6 +263,7 @@ descriptives_dialog (GObject *o, gpointer data) case GTK_RESPONSE_OK: { gchar *syntax = generate_syntax (&scd); + struct getl_interface *sss = create_syntax_string_source (syntax); execute_syntax (sss); @@ -272,13 +273,7 @@ descriptives_dialog (GObject *o, gpointer data) case PSPPIRE_RESPONSE_PASTE: { gchar *syntax = generate_syntax (&scd); - - GtkWidget *se = psppire_syntax_window_new (); - - gtk_text_buffer_insert_at_cursor (PSPPIRE_SYNTAX_WINDOW (se)->buffer, syntax, -1); - - gtk_widget_show (se); - + paste_syntax_in_new_window (syntax); g_free (syntax); } break;