libchimara_includedir = $(includedir)/chimara/chimara
libchimara_include_HEADERS = chimara-glk.h
-pkglib_LTLIBRARIES = first.la model.la
+pkglib_LTLIBRARIES = first.la model.la gridtest.la
first_la_SOURCES = first.c
first_la_LIBADD = libchimara.la
model_la_LIBADD = libchimara.la
model_la_LDFLAGS = -module -avoid-version
+gridtest_la_SOURCES = gridtest.c
+gridtest_la_LIBADD = libchimara.la
+gridtest_la_LDFLAGS = -module -avoid-version
+
CLEANFILES = chimara.ui
chimara.ui: chimara.glade
--- /dev/null
+#include "glk.h"
+
+void glk_main(void)
+{
+ winid_t mainwin = glk_window_open(0, 0, 0, wintype_TextGrid, 0);
+ if(!mainwin)
+ return;
+
+ glk_set_window(mainwin);
+ glk_put_string("Philip en Marijn zijn vet goed.\n");
+ glk_put_string("A veeeeeeeeeeeeeeeeeeeeeeeeeeeery looooooooooooooooooooooooong striiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiing\n");
+}
\ No newline at end of file
g_object_unref( G_OBJECT(builder) );
- if( !chimara_glk_run(CHIMARA_GLK(glk), ".libs/first.so", &error) ) {
+ if( !chimara_glk_run(CHIMARA_GLK(glk), ".libs/gridtest.so", &error) ) {
error_dialog(GTK_WINDOW(window), error, "Error starting Glk library: ");
return 1;
}
gdk_threads_leave();
g_warning("%s: unsupported window type", __func__);
g_free(win);
+ g_node_destroy(glk_data->root_window);
+ glk_data->root_window = NULL;
return NULL;
}