Implemented the paired samples t test dialog. Closes patch #6378
[pspp-builds.git] / src / ui / gui / sort-cases-dialog.c
index 1d5c551007cd8755066b6c5a018788c931982daf..a722063bca70beb42f7ca4a4a990926fa369b4b1 100644 (file)
@@ -1,3 +1,20 @@
+/* PSPPIRE - a graphical user interface for PSPP.
+   Copyright (C) 2007  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
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
 #include <gtk/gtk.h>
 #include "sort-cases-dialog.h"
 #include "helper.h"
@@ -34,7 +51,7 @@ generate_syntax (const struct sort_cases_dialog *scd)
   gchar *text;
   GString *string = g_string_new ("SORT CASES BY ");
   gint n_vars = append_variable_names (string,
-                                      scd->dict, GTK_TREE_VIEW (scd->tv));
+                                      scd->dict, GTK_TREE_VIEW (scd->tv), 0);
 
   if ( n_vars == 0 )
     g_string_assign (string, "");
@@ -90,6 +107,7 @@ sort_cases_dialog (GObject *o, gpointer data)
                                 source,
                                 dest,
                                 insert_source_row_into_tree_view,
+                                NULL,
                                 NULL);
 
   g_signal_connect (dialog, "refresh", G_CALLBACK (refresh),  dest);