preliminary support for splitting of windows. Does not respect window sizes yet....
[rodin/chimara.git] / src / glk.c
index 88ca873e10ea3c58e1eae636d980ac8dbcb8d0fc..97673ac4ca11e13bb6d2450f193affbd8a544850 100644 (file)
--- a/src/glk.c
+++ b/src/glk.c
@@ -1,8 +1,11 @@
-#include <glib.h>
 #include <gtk/gtk.h>
 
 #include "glk.h"
 #include "abort.h"
+#include "chimara-glk.h"
+#include "chimara-glk-private.h"
+
+ChimaraGlkPrivate *glk_data = NULL;
 
 /**
  * glk_exit:
@@ -24,7 +27,8 @@
 void
 glk_exit(void)
 {
-       cleanup();
+    g_signal_emit_by_name(glk_data->self, "stopped");
+    glk_data = NULL;
        g_thread_exit(NULL);
 }