X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fweight-cases-dialog.c;h=8cfae24b74bded8b517a85784c3214bab3852d36;hb=c3e2ab6b50eb3b3c7e0852f2a4e2122f695714ff;hp=a464646fe7742eeacf0c0ece78467710c0ad5de8;hpb=88cddbfae2dba14cd7e4225961aa88c3e6fe4445;p=pspp-builds.git diff --git a/src/ui/gui/weight-cases-dialog.c b/src/ui/gui/weight-cases-dialog.c index a464646f..8cfae24b 100644 --- a/src/ui/gui/weight-cases-dialog.c +++ b/src/ui/gui/weight-cases-dialog.c @@ -130,11 +130,10 @@ weight_cases_dialog (GObject *o, gpointer data) g_signal_connect (selector, "de-selected", G_CALLBACK (on_deselect), radiobutton1); - attach_dictionary_to_treeview (GTK_TREE_VIEW (source), - vs->dict, - GTK_SELECTION_SINGLE, - var_is_numeric - ); + g_object_set (source, "model", vs->dict, + "selection-mode", GTK_SELECTION_SINGLE, + "predicate", var_is_numeric, + NULL); psppire_selector_set_subjects (PSPPIRE_SELECTOR (selector), source,