X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fregression-dialog.c;h=eaca17e074e49aef32c5cbbb7447ef3c012b94b8;hb=66153a44d861ccddf6a176ec5a94ffb959232ad6;hp=b42dffe50b06b1583a91f38766aeafcb3bc36880;hpb=40233794e1b6c07262aaa30a5b6e977caf359ca1;p=pspp-builds.git diff --git a/src/ui/gui/regression-dialog.c b/src/ui/gui/regression-dialog.c index b42dffe5..eaca17e0 100644 --- a/src/ui/gui/regression-dialog.c +++ b/src/ui/gui/regression-dialog.c @@ -18,6 +18,7 @@ #include "checkbox-treeview.h" #include "regression-dialog.h" +#include "executor.h" #include #include @@ -29,7 +30,7 @@ #include #include #include -#include + #include "gettext.h" #define _(msgid) gettext (msgid) @@ -252,10 +253,11 @@ regression_dialog (GObject *o, gpointer data) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); - g_object_set (source, "dictionary", vs->dict, NULL); + g_object_get (vs, "dictionary", &rd.dict, NULL); + g_object_set (source, "dictionary", rd.dict, NULL); - set_dest_model (GTK_TREE_VIEW (dest_dep), vs->dict); - set_dest_model (GTK_TREE_VIEW (dest_indep), vs->dict); + set_dest_model (GTK_TREE_VIEW (dest_dep), rd.dict); + set_dest_model (GTK_TREE_VIEW (dest_indep), rd.dict); psppire_selector_set_subjects (PSPPIRE_SELECTOR (dep_selector), source, @@ -273,7 +275,8 @@ regression_dialog (GObject *o, gpointer data) rd.dep_vars = GTK_TREE_VIEW (dest_dep); rd.indep_vars = GTK_TREE_VIEW (dest_indep); - rd.dict = vs->dict; + + rd.save_dialog = get_widget_assert (xml, "save-dialog"); rd.pred_button = GTK_TOGGLE_BUTTON (get_widget_assert (xml, "pred-button")); rd.resid_button = GTK_TOGGLE_BUTTON (get_widget_assert (xml, "resid-button"));