X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ffrequencies-dialog.c;h=2d5fcbb48d9f23485ab3b093c0bfe80fa273b80c;hb=fd0c595927a23ea0373551a1eed4570388ea0fc5;hp=1d6a3a2a4b322e8931be6ee8219a90e891957ab8;hpb=03134dc262125d1785891d6111eec58ca09b3b54;p=pspp-builds.git diff --git a/src/ui/gui/frequencies-dialog.c b/src/ui/gui/frequencies-dialog.c index 1d6a3a2a..2d5fcbb4 100644 --- a/src/ui/gui/frequencies-dialog.c +++ b/src/ui/gui/frequencies-dialog.c @@ -18,6 +18,7 @@ #include "checkbox-treeview.h" #include "frequencies-dialog.h" +#include "psppire-var-view.h" #include #include @@ -147,7 +148,7 @@ generate_syntax (const struct frequencies_dialog *fd) GString *string = g_string_new ("FREQUENCIES"); g_string_append (string, "\n\t/VARIABLES="); - append_variable_names (string, fd->dict, GTK_TREE_VIEW (fd->stat_vars), 0); + psppire_var_view_append_names (PSPPIRE_VAR_VIEW (fd->stat_vars), 0, string); g_string_append (string, "\n\t/FORMAT="); @@ -316,7 +317,6 @@ frequencies_dialog (GObject *o, gpointer data) GtkWidget *dialog = get_widget_assert (xml, "frequencies-dialog"); GtkWidget *source = get_widget_assert (xml, "dict-treeview"); GtkWidget *dest = get_widget_assert (xml, "var-treeview"); - GtkWidget *selector = get_widget_assert (xml, "selector1"); GtkWidget *format_button = get_widget_assert (xml, "button1"); GtkWidget *stats_treeview = get_widget_assert (xml, "stats-treeview"); @@ -336,15 +336,6 @@ frequencies_dialog (GObject *o, gpointer data) g_object_get (vs, "dictionary", &fd.dict, NULL); g_object_set (source, "model", fd.dict, NULL); - - set_dest_model (GTK_TREE_VIEW (dest), fd.dict); - - - psppire_selector_set_select_func (PSPPIRE_SELECTOR (selector), - insert_source_row_into_tree_view, - NULL); - - fd.stat_vars = GTK_TREE_VIEW (dest); fd.table_button = get_widget_assert (xml, "checkbutton1"); fd.format_dialog = get_widget_assert (xml, "format-dialog");