X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Foneway-anova-dialog.c;h=13f3621092a06050fbe5be38e0084efbf1b1bbe5;hb=392ab4052e2743f80664a4130b2b4ee5d82af7fe;hp=be281f7c546adb838306771c68ea50c1a7bfa86f;hpb=0bd0098aec2ee31d9460c8d4c1263d0b5ccc4324;p=pspp-builds.git diff --git a/src/ui/gui/oneway-anova-dialog.c b/src/ui/gui/oneway-anova-dialog.c index be281f7c..13f36210 100644 --- a/src/ui/gui/oneway-anova-dialog.c +++ b/src/ui/gui/oneway-anova-dialog.c @@ -23,7 +23,6 @@ #include "psppire-dict.h" #include "psppire-var-store.h" #include "helper.h" -#include #include "data-editor.h" #include "psppire-dialog.h" #include "dialog-common.h" @@ -129,15 +128,12 @@ oneway_anova_dialog (GObject *o, gpointer data) gint response; struct data_editor *de = data; - PsppireVarStore *vs; + PsppireVarStore *vs = NULL; GladeXML *xml = XML_NEW ("oneway.glade"); struct oneway_anova_dialog ow; - GtkSheet *var_sheet = - GTK_SHEET (get_widget_assert (de->xml, "variable_sheet")); - GtkWidget *dict_view = get_widget_assert (xml, "oneway-anova-treeview1"); @@ -165,7 +161,7 @@ oneway_anova_dialog (GObject *o, gpointer data) ow.homogeneity = GTK_TOGGLE_BUTTON (get_widget_assert (xml, "checkbutton2")); - vs = PSPPIRE_VAR_STORE (gtk_sheet_get_model (var_sheet)); + g_object_get (de->data_editor, "var-store", &vs, NULL); ow.dict = vs->dict;