X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fweight-cases-dialog.c;h=b3087159f941adf7d16b7d2dc1d66f7165ee38d5;hb=66153a44d861ccddf6a176ec5a94ffb959232ad6;hp=a464646fe7742eeacf0c0ece78467710c0ad5de8;hpb=b6bcae693f035491ae0625f301f3e630c1335555;p=pspp-builds.git diff --git a/src/ui/gui/weight-cases-dialog.c b/src/ui/gui/weight-cases-dialog.c index a464646f..b3087159 100644 --- a/src/ui/gui/weight-cases-dialog.c +++ b/src/ui/gui/weight-cases-dialog.c @@ -19,7 +19,7 @@ #include "weight-cases-dialog.h" #include "psppire-selector.h" #include "psppire-dialog.h" -#include "helper.h" +#include "executor.h" #include "psppire-data-window.h" #include "dict-display.h" #include @@ -120,6 +120,7 @@ weight_cases_dialog (GObject *o, gpointer data) PsppireVarStore *vs = NULL; g_object_get (de->data_editor, "var-store", &vs, NULL); + g_object_get (vs, "dictionary", &wcd.dict, NULL); gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); @@ -130,11 +131,11 @@ 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, "dictionary", wcd.dict, + "selection-mode", GTK_SELECTION_SINGLE, + "predicate", var_is_numeric, + NULL); psppire_selector_set_subjects (PSPPIRE_SELECTOR (selector), source, @@ -145,7 +146,7 @@ weight_cases_dialog (GObject *o, gpointer data) ); - wcd.dict = vs->dict; + wcd.entry = GTK_ENTRY (entry); wcd.status = GTK_LABEL (status); wcd.off = GTK_TOGGLE_BUTTON (radiobutton1);