GTK: thread-safe refresh. doesn't freeze randomly anymore.

This commit is contained in:
StapleButter
2017-09-19 16:53:02 +02:00
parent 4db1a51fa4
commit edd33187b6
4 changed files with 24 additions and 5 deletions

View File

@ -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;
}