Merge 'master' into 'psppsheet'.
[pspp] / src / ui / gui / runs-dialog.c
index 2e2193730310a12a41dc64e39eb932ee90887584..7bc05f2422c711c2a3884aa340f791dc8d4dfc35 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
@@ -29,6 +29,7 @@
 #include "psppire-var-view.h"
 
 #include "executor.h"
+#include "builder-wrapper.h"
 #include "helper.h"
 
 #include <gtk/gtk.h>
@@ -121,8 +122,6 @@ runs_dialog (PsppireDataWindow *dw)
   struct runs fd;
   gint response;
 
-  PsppireVarStore *vs;
-
   GtkWidget *dialog ;
   GtkWidget *source ;
 
@@ -144,11 +143,9 @@ runs_dialog (PsppireDataWindow *dw)
 
   fd.variables = get_widget_assert   (fd.xml, "psppire-var-view1");
 
-  g_object_get (fd.de->data_editor, "var-store", &vs, NULL);
-
   gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (fd.de));
 
-  g_object_get (vs, "dictionary", &fd.dict, NULL);
+  g_object_get (fd.de->data_editor, "dictionary", &fd.dict, NULL);
   g_object_set (source, "model", fd.dict,
                "predicate", var_is_numeric,
                NULL);