X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=791eea2563871ec7768e5356d8b619632fd7c6b8;hb=a9a69251edd625a50f271af5d64c157533b5fe48;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..791eea25 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,30 +423,25 @@ 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, "model", 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, - dest_rows, insert_source_row_into_tree_view, NULL, NULL); psppire_selector_set_subjects (PSPPIRE_SELECTOR (col_selector), - source, - dest_cols, insert_source_row_into_tree_view, NULL, NULL); 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"));