#include "checkbox-treeview.h"
#include "regression-dialog.h"
+#include "executor.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <ui/gui/helper.h>
#include <ui/gui/psppire-dialog.h>
#include <ui/gui/psppire-var-store.h>
-#include <ui/gui/helper.h>
+
#include "gettext.h"
#define _(msgid) gettext (msgid)
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, "model", 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,
+ psppire_selector_set_select_func (PSPPIRE_SELECTOR (dep_selector),
insert_source_row_into_tree_view,
- NULL,
NULL);
- psppire_selector_set_subjects (PSPPIRE_SELECTOR (indep_selector),
- source,
- dest_indep,
+ psppire_selector_set_select_func (PSPPIRE_SELECTOR (indep_selector),
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"));