diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-09-19 16:53:02 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-09-19 16:53:02 +0200 |
commit | edd33187b630d705b9915b7cf34fb76307db4d1e (patch) | |
tree | 6622b3500066852a7752c198f471d11b8ec93ce9 /src/libui_sdl/libui/unix/main.c | |
parent | 4db1a51fa4cb6412c76a37329d23a00478c9f9ef (diff) |
GTK: thread-safe refresh. doesn't freeze randomly anymore.
Diffstat (limited to 'src/libui_sdl/libui/unix/main.c')
-rw-r--r-- | src/libui_sdl/libui/unix/main.c | 6 |
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; } |