X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Funivariate-dialog.c;h=2f241498603f3fd9397545d7eea7a7aa9d60f3fc;hb=refs%2Fbuilds%2F20130924032641%2Fpspp;hp=2692e4880c3607948e9aed64d7b03c0a72469755;hpb=5cc0ad44c71734d01e88e95b402ab663ee406191;p=pspp diff --git a/src/ui/gui/univariate-dialog.c b/src/ui/gui/univariate-dialog.c index 2692e4880c..2f24149860 100644 --- a/src/ui/gui/univariate-dialog.c +++ b/src/ui/gui/univariate-dialog.c @@ -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 #include -#include +#include #include "psppire-dialog.h" #include "dict-display.h" @@ -27,6 +27,7 @@ #include #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),