Replace checkbox-treeview functions with a object PsppireCheckboxTreeview
[pspp] / src / ui / gui / univariate-dialog.c
index 2692e4880c3607948e9aed64d7b03c0a72469755..2f241498603f3fd9397545d7eea7a7aa9d60f3fc 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2011  Free Software Foundation
+   Copyright (C) 2011, 2012  Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 #include <config.h>
 
 #include <gtk/gtk.h>
-#include <ui/gui/helper.h>
+#include <ui/gui/builder-wrapper.h>
 #include "psppire-dialog.h"
 #include "dict-display.h"
 
@@ -27,6 +27,7 @@
 #include <ui/gui/dialog-common.h>
 
 #include "executor.h"
+#include "helper.h"
 
 #include "univariate-dialog.h"
 
@@ -113,13 +114,9 @@ univariate_dialog (PsppireDataWindow * de)
   GtkWidget *factor_selector = get_widget_assert (xml, "factor-selector");
 
 
-  PsppireVarStore *vs = NULL;
-
   uv_d.dep_entry = get_widget_assert (xml, "dep-entry");
   uv_d.factor_list = get_widget_assert (xml, "factors-view");
 
-  g_object_get (de->data_editor, "var-store", &vs, NULL);
-
   gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de));
   g_signal_connect (dialog, "refresh", G_CALLBACK (refresh),  &uv_d);
 
@@ -127,7 +124,7 @@ univariate_dialog (PsppireDataWindow * de)
                                      dialog_state_valid, &uv_d);
 
 
-  g_object_get (vs, "dictionary", &uv_d.dict, NULL);
+  g_object_get (de->data_editor, "dictionary", &uv_d.dict, NULL);
   g_object_set (source, "model", uv_d.dict, NULL);
 
   psppire_selector_set_allow (PSPPIRE_SELECTOR (dep_selector),