X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fregression-dialog.c;h=87101397be361c27e37d1183a72807f82d5bc9f4;hb=7c2fa3735ac1115b6c1ad4b5e0613673de2faf4c;hp=a702ffb78df0c8d7681c2ec52ce8b6612efc65f8;hpb=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp-builds.git diff --git a/src/ui/gui/regression-dialog.c b/src/ui/gui/regression-dialog.c index a702ffb7..87101397 100644 --- a/src/ui/gui/regression-dialog.c +++ b/src/ui/gui/regression-dialog.c @@ -253,28 +253,26 @@ 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, - dest_dep, insert_source_row_into_tree_view, NULL, NULL); psppire_selector_set_subjects (PSPPIRE_SELECTOR (indep_selector), - source, - dest_indep, insert_source_row_into_tree_view, NULL, NULL); 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"));