first.c compilet en draait!
[projects/chimara/chimara.git] / src / glk.c
index 885f36f86fc94007926f16adaea048c7365d751d..fc22682676d383f7f2aed2be6fdb435b77eeeed9 100644 (file)
--- a/src/glk.c
+++ b/src/glk.c
@@ -1,18 +1,26 @@
+#include <glib.h>
 #include <gtk/gtk.h>
 
 #include "glk.h"
 
+/**
+ * glk_exit:
+ * 
+ * End the Glk program. As far as the client program is concerned, this
+ * function does not return.
+ */
 void
 glk_exit(void)
 {
-       gtk_main();
+       g_thread_exit(NULL);
 }
 
+/*
 void
 glk_select(event_t *event)
 {
        gtk_main_iteration();
 }
-
+*/