From ea3624daedd67f04e704875af1a57e7f1e5a5d23 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 29 Feb 2008 09:28:34 +0000 Subject: [PATCH] Fixed regression dialog to use new data editor arrangement. --- src/ui/gui/regression-dialog.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/gui/regression-dialog.c b/src/ui/gui/regression-dialog.c index 2036fa7c..031c26e2 100644 --- a/src/ui/gui/regression-dialog.c +++ b/src/ui/gui/regression-dialog.c @@ -93,7 +93,7 @@ refresh (PsppireDialog *dialog, struct regression_dialog *rd) { GtkTreeModel *liststore = gtk_tree_view_get_model (rd->dep_vars); gtk_list_store_clear (GTK_LIST_STORE (liststore)); - + liststore = gtk_tree_view_get_model (rd->indep_vars); gtk_list_store_clear (GTK_LIST_STORE (liststore)); } @@ -229,7 +229,6 @@ regression_dialog (GObject *o, gpointer data) struct regression_dialog rd; GladeXML *xml = XML_NEW ("regression.glade"); - GtkSheet *var_sheet; PsppireVarStore *vs; GtkWidget *dialog = get_widget_assert (xml, "regression-dialog"); @@ -244,9 +243,8 @@ regression_dialog (GObject *o, gpointer data) rd.stat_view = get_widget_assert (xml, "stat-view"); - var_sheet = GTK_SHEET (get_widget_assert (de->xml, "variable_sheet")); + g_object_get (de->data_editor, "var-store", &vs, NULL); - vs = PSPPIRE_VAR_STORE (gtk_sheet_get_model (var_sheet)); put_checkbox_items_in_treeview (GTK_TREE_VIEW(rd.stat_view), B_RG_STATS_DEFAULT, -- 2.30.2