X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=188c4aaa92c66c339c829bef59df4748f6e23516;hb=4cf49191fb83586ae05ed9613ce229417c106055;hp=dfe03e3c67d9ce75ad001c761c57565697a933c7;hpb=c7b5e2dcfaeb0221b801dc3cc9fa1ab9a4ec5861;p=pspp diff --git a/src/ui/gui/crosstabs-dialog.c b/src/ui/gui/crosstabs-dialog.c index dfe03e3c67..188c4aaa92 100644 --- a/src/ui/gui/crosstabs-dialog.c +++ b/src/ui/gui/crosstabs-dialog.c @@ -26,10 +26,10 @@ #include #include #include -#include +#include "helper.h" #include #include -#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -387,8 +387,7 @@ crosstabs_dialog (GObject *o, gpointer data) gint response; struct crosstabs_dialog cd; - GladeXML *xml = XML_NEW ("crosstabs.glade"); - + GtkBuilder *xml = builder_new ("crosstabs.ui"); PsppireVarStore *vs = NULL; PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data); @@ -487,6 +486,7 @@ crosstabs_dialog (GObject *o, gpointer data) case GTK_RESPONSE_OK: { gchar *syntax = generate_syntax (&cd); + struct getl_interface *sss = create_syntax_string_source (syntax); execute_syntax (sss); @@ -497,11 +497,7 @@ crosstabs_dialog (GObject *o, gpointer data) { gchar *syntax = generate_syntax (&cd); - 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); }