X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=019d8c361dffe49c35b58b2f2799f701abd392b8;hb=66153a44d861ccddf6a176ec5a94ffb959232ad6;hp=a3498d1f6d72c4b70b72a46ccc6569721898c29e;hpb=8953baa61127d6d3b91f763663ea647bf3e4e793;p=pspp-builds.git diff --git a/src/ui/gui/crosstabs-dialog.c b/src/ui/gui/crosstabs-dialog.c index a3498d1f..019d8c36 100644 --- a/src/ui/gui/crosstabs-dialog.c +++ b/src/ui/gui/crosstabs-dialog.c @@ -26,7 +26,7 @@ #include #include #include -#include "helper.h" +#include "executor.h" #include #include #include @@ -388,8 +388,8 @@ crosstabs_dialog (GObject *o, gpointer data) struct crosstabs_dialog cd; GtkBuilder *xml = builder_new ("crosstabs.ui"); - PsppireVarStore *vs = NULL; + PsppireDict *dict = NULL; PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data); @@ -423,12 +423,11 @@ crosstabs_dialog (GObject *o, gpointer data) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); - attach_dictionary_to_treeview (GTK_TREE_VIEW (source), - vs->dict, - GTK_SELECTION_MULTIPLE, NULL); + g_object_get (vs, "dictionary", &dict, NULL); + g_object_set (source, "dictionary", dict, NULL); - set_dest_model (GTK_TREE_VIEW (dest_rows), vs->dict); - set_dest_model (GTK_TREE_VIEW (dest_cols), vs->dict); + set_dest_model (GTK_TREE_VIEW (dest_rows), dict); + set_dest_model (GTK_TREE_VIEW (dest_cols), dict); psppire_selector_set_subjects (PSPPIRE_SELECTOR (row_selector), source, @@ -446,7 +445,7 @@ crosstabs_dialog (GObject *o, gpointer data) cd.row_vars = GTK_TREE_VIEW (dest_rows); cd.col_vars = GTK_TREE_VIEW (dest_cols); - cd.dict = vs->dict; + g_object_get (vs, "dictionary", &cd.dict, NULL); cd.format_dialog = get_widget_assert (xml, "format-dialog"); cd.table_button = GTK_TOGGLE_BUTTON (get_widget_assert (xml, "print-tables")); cd.pivot_button = GTK_TOGGLE_BUTTON (get_widget_assert (xml, "pivot"));