Separated psppire_selector_set_subjects into two individual functions
[pspp-builds.git] / src / ui / gui / weight-cases-dialog.c
index b43d49c3f50d64c244b4ff17ee62877def5a68cf..1871f7aa9c40a417054c69e12bd4665440e7236b 100644 (file)
@@ -132,16 +132,18 @@ weight_cases_dialog (GObject *o, gpointer data)
                    radiobutton1);
 
   
-  g_object_set (source, "dictionary", wcd.dict,
+  g_object_set (source, "model", wcd.dict,
                                 "selection-mode", GTK_SELECTION_SINGLE,
                                 "predicate", var_is_numeric,
                                 NULL);
 
-  psppire_selector_set_subjects (PSPPIRE_SELECTOR (selector),
+  psppire_selector_set_select_func (PSPPIRE_SELECTOR (selector),
                                 insert_source_row_into_entry,
-                                is_currently_in_entry,
-                                NULL
-                                );
+                                NULL);
+
+  psppire_selector_set_filter_func (PSPPIRE_SELECTOR (selector),
+                                   is_currently_in_entry);
+
 
   wcd.entry = GTK_ENTRY (entry);
   wcd.status = GTK_LABEL (status);