X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fexamine-dialog.c;h=79ba48e9b45bc05edbbf604f3b48919c2fed804d;hb=a9a69251edd625a50f271af5d64c157533b5fe48;hp=171d88cfc2f9f6def60a12b6fee571f22825bbce;hpb=8953baa61127d6d3b91f763663ea647bf3e4e793;p=pspp-builds.git diff --git a/src/ui/gui/examine-dialog.c b/src/ui/gui/examine-dialog.c index 171d88cf..79ba48e9 100644 --- a/src/ui/gui/examine-dialog.c +++ b/src/ui/gui/examine-dialog.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include "executor.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -279,37 +279,28 @@ examine_dialog (GObject *o, gpointer data) gtk_window_set_transient_for (GTK_WINDOW (ex_d.stats_dialog), GTK_WINDOW (de)); gtk_window_set_transient_for (GTK_WINDOW (ex_d.opts_dialog), GTK_WINDOW (de)); - attach_dictionary_to_treeview (GTK_TREE_VIEW (source), - vs->dict, - GTK_SELECTION_MULTIPLE, NULL); - + g_object_get (vs, "dictionary", &ex_d.dict, NULL); + g_object_set (source, "model", ex_d.dict, NULL); - set_dest_model (GTK_TREE_VIEW (ex_d.dep_list), vs->dict); - ex_d.dict = vs->dict; + set_dest_model (GTK_TREE_VIEW (ex_d.dep_list), ex_d.dict); psppire_selector_set_subjects (PSPPIRE_SELECTOR (dep_selector), - source, - ex_d.dep_list, insert_source_row_into_tree_view, NULL, NULL); psppire_selector_set_allow (PSPPIRE_SELECTOR (dep_selector), numeric_only); - set_dest_model (GTK_TREE_VIEW (ex_d.fct_list), vs->dict); + set_dest_model (GTK_TREE_VIEW (ex_d.fct_list), ex_d.dict); psppire_selector_set_subjects (PSPPIRE_SELECTOR (fct_selector), - source, - ex_d.fct_list, insert_source_row_into_tree_view, NULL, NULL); psppire_selector_set_subjects (PSPPIRE_SELECTOR (id_selector), - source, - ex_d.id_entry, insert_source_row_into_entry, NULL, NULL);