Rename the "model" property to "dictionary"
[pspp-builds.git] / src / ui / gui / t-test-paired-samples.c
index 58b68b2ff2f652d387f34d1d7394e33e20f8437f..a239a47193b4eba5eb778355847ea2b1d5bc1490 100644 (file)
 
 #include <config.h>
 #include <gtk/gtk.h>
-#include <glade/glade.h>
 #include <language/syntax-string-source.h>
 
 #include "psppire-data-window.h"
+#include "psppire-selector.h"
 
 #include "psppire-dict.h"
 #include "psppire-var-store.h"
 #include "t-test-paired-samples.h"
 #include "t-test-options.h"
 
-#include "dict-display.h"
 #include "dialog-common.h"
 #include "psppire-dialog.h"
 
@@ -185,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");
@@ -206,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, "dictionary",
                                 vs->dict,
-                                GTK_SELECTION_MULTIPLE,
-                                var_is_numeric);
+                                "predicate",
+                                var_is_numeric, NULL);
 
   {
     tt_d.list_store =