New file: builder-wrapper.h and builder-wrapper.c
[pspp-builds.git] / src / ui / gui / sort-cases-dialog.c
index 50624ad009ce74d32d197e6ea53cb2d724d93b3f..62d738c96db5ee08307d4b1e02bc69f25c730176 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007, 2010  Free Software Foundation
+   Copyright (C) 2007, 2010, 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
 #include "dict-display.h"
 #include "psppire-var-view.h"
 
+#include "builder-wrapper.h"
 #include "helper.h"
 
+
 static void
 refresh (PsppireDialog *dialog, GtkTreeView *dest)
 {
   GtkTreeModel *liststore = gtk_tree_view_get_model (dest);
 
-
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
 }
 
@@ -128,7 +129,7 @@ sort_cases_dialog (PsppireDataWindow *de)
   switch (response)
     {
     case GTK_RESPONSE_OK:
-      g_free (execute_syntax_string (generate_syntax (&scd)));
+      g_free (execute_syntax_string (de, generate_syntax (&scd)));
       break;
     case PSPPIRE_RESPONSE_PASTE:
       g_free (paste_syntax_to_window (generate_syntax (&scd)));