X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcrosstabs-dialog.c;h=663599f331c6a4306200fed2a1ac040cadbaca7b;hb=f82952d22e200e1b35cea23545857a2cf2f02c66;hp=70538102b0febcfe2363cfa4ef1e625fd15ba6ef;hpb=c2ef0c78e3b43419530c7b19d225ed7db54c5228;p=pspp-builds.git diff --git a/src/ui/gui/crosstabs-dialog.c b/src/ui/gui/crosstabs-dialog.c index 70538102..663599f3 100644 --- a/src/ui/gui/crosstabs-dialog.c +++ b/src/ui/gui/crosstabs-dialog.c @@ -391,8 +391,7 @@ crosstabs_dialog (GObject *o, gpointer data) struct crosstabs_dialog cd; GladeXML *xml = XML_NEW ("crosstabs.glade"); - GtkSheet *var_sheet; - PsppireVarStore *vs; + PsppireVarStore *vs = NULL; GtkWidget *dialog = get_widget_assert (xml, "crosstabs-dialog"); GtkWidget *source = get_widget_assert (xml, "dict-treeview"); @@ -408,9 +407,7 @@ crosstabs_dialog (GObject *o, gpointer data) cd.stat_view = get_widget_assert (xml, "stats-view"); cd.cell_view = get_widget_assert (xml, "cell-view"); - var_sheet = GTK_SHEET (get_widget_assert (de->xml, "variable_sheet")); - - vs = PSPPIRE_VAR_STORE (gtk_sheet_get_model (var_sheet)); + g_object_get (de->data_editor, "var-store", &vs, NULL); put_checkbox_items_in_treeview (GTK_TREE_VIEW(cd.stat_view), B_CS_STATS_DEFAULT,