Added a basic output viewer.
[pspp-builds.git] / src / ui / gui / helper.c
index 5668496833cdd975d1874be4c345de0db54e67d0..6259965aaf3abfdd168b30ca569471f5d0f5126a 100644 (file)
@@ -40,7 +40,8 @@
 #include <data/procedure.h>
 #include <language/lexer/lexer.h>
 #include "psppire-data-store.h"
-
+#include <output/manager.h>
+#include "output-viewer.h"
 
 #include <gettext.h>
 
@@ -103,7 +104,7 @@ get_widget_assert (GladeXML *xml, const gchar *name)
   w = glade_xml_get_widget (xml, name);
 
   if ( !w )
-    g_warning ("Widget \"%s\" could not be found\n", name);
+    g_critical ("Widget \"%s\" could not be found\n", name);
 
   return w;
 }
@@ -199,6 +200,12 @@ execute_syntax (struct getl_interface *sss)
 
     psppire_data_store_set_case_file (the_data_store, pcf);
   }
+
+  proc_set_active_file_data (the_dataset, NULL);
+
+  som_flush ();
+
+  reload_the_viewer ();
 }