X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fregression-dialog.c;h=4ee11fe9982ffd9a55ea4e1091aa7d9db081f795;hb=c94183521bb50d92ae05153f6013af0bc347299e;hp=2036fa7c2dbbb8a36117a44de569afff52606f16;hpb=4d688b2e05945b3e3c733a005fb2775110ebb78b;p=pspp-builds.git diff --git a/src/ui/gui/regression-dialog.c b/src/ui/gui/regression-dialog.c index 2036fa7c..4ee11fe9 100644 --- a/src/ui/gui/regression-dialog.c +++ b/src/ui/gui/regression-dialog.c @@ -20,7 +20,6 @@ #include "regression-dialog.h" #include -#include #include #include @@ -93,7 +92,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 +228,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 +242,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,