X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ft-test-paired-samples.c;h=50964b6e06ef7a85500a444f3ae53ad770c7fd08;hb=c3e2ab6b50eb3b3c7e0852f2a4e2122f695714ff;hp=b84bee9bfc90dff286c345c79a3dbfea546ef7b7;hpb=c7b5e2dcfaeb0221b801dc3cc9fa1ab9a4ec5861;p=pspp diff --git a/src/ui/gui/t-test-paired-samples.c b/src/ui/gui/t-test-paired-samples.c index b84bee9bfc..50964b6e06 100644 --- a/src/ui/gui/t-test-paired-samples.c +++ b/src/ui/gui/t-test-paired-samples.c @@ -17,7 +17,6 @@ #include #include -#include #include #include "psppire-data-window.h" @@ -31,8 +30,6 @@ #include "dialog-common.h" #include "psppire-dialog.h" -#include "psppire-syntax-window.h" - #include "helper.h" #include "psppire-var-ptr.h" @@ -187,7 +184,7 @@ t_test_paired_samples_dialog (GObject *o, gpointer data) PsppireVarStore *vs = NULL; - GladeXML *xml = XML_NEW ("t-test.glade"); + GtkBuilder *xml = builder_new ("t-test.ui"); GtkWidget *dict_view = get_widget_assert (xml, "paired-samples-t-test-treeview1"); @@ -208,10 +205,10 @@ t_test_paired_samples_dialog (GObject *o, gpointer data) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); - attach_dictionary_to_treeview (GTK_TREE_VIEW (dict_view), + g_object_set (dict_view, "model", vs->dict, - GTK_SELECTION_MULTIPLE, - var_is_numeric); + "predicate", + var_is_numeric, NULL); { tt_d.list_store = @@ -255,6 +252,7 @@ t_test_paired_samples_dialog (GObject *o, gpointer data) case GTK_RESPONSE_OK: { gchar *syntax = generate_syntax (&tt_d); + struct getl_interface *sss = create_syntax_string_source (syntax); execute_syntax (sss); @@ -264,12 +262,7 @@ t_test_paired_samples_dialog (GObject *o, gpointer data) case PSPPIRE_RESPONSE_PASTE: { gchar *syntax = generate_syntax (&tt_d); - - 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); }