X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=f5593586778cd3b3bf17bcdb6376564f44d08085;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;hp=dfe03e3c67d9ce75ad001c761c57565697a933c7;hpb=c7b5e2dcfaeb0221b801dc3cc9fa1ab9a4ec5861;p=pspp-builds.git diff --git a/src/ui/gui/crosstabs-dialog.c b/src/ui/gui/crosstabs-dialog.c index dfe03e3c..f5593586 100644 --- a/src/ui/gui/crosstabs-dialog.c +++ b/src/ui/gui/crosstabs-dialog.c @@ -26,10 +26,10 @@ #include #include #include -#include +#include "executor.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); @@ -423,9 +422,7 @@ crosstabs_dialog (GObject *o, gpointer data) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); - attach_dictionary_to_treeview (GTK_TREE_VIEW (source), - vs->dict, - GTK_SELECTION_MULTIPLE, NULL); + g_object_set (source, "dictionary", vs->dict, NULL); set_dest_model (GTK_TREE_VIEW (dest_rows), vs->dict); set_dest_model (GTK_TREE_VIEW (dest_cols), vs->dict); @@ -487,6 +484,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 +495,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); }