aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/libui/unix/main.c')
-rw-r--r--src/libui_sdl/libui/unix/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/unix/main.c b/src/libui_sdl/libui/unix/main.c
index 2998bf3..e645234 100644
--- a/src/libui_sdl/libui/unix/main.c
+++ b/src/libui_sdl/libui/unix/main.c
@@ -3,6 +3,9 @@
uiInitOptions options;
+// kind of a hack
+GThread* gtkthread;
+
const char *uiInit(uiInitOptions *o)
{
GError *err = NULL;
@@ -16,6 +19,9 @@ const char *uiInit(uiInitOptions *o)
}
initAlloc();
loadFutures();
+
+ gtkthread = g_thread_self();
+
return NULL;
}