threadsInit

fnvoid threadsInit()

Initializes GDK so that it can be used from multiple threads in conjunction with [gdk.global.threadsEnter] and [gdk.global.threadsLeave].

This call must be made before any use of the main loop from GTK+; to be safe, call it before [gtk.global.init_].

Deprecated

All GDK and GTK+ calls should be made from the main

thread