Warning: threads_init is deprecated since 3.6.
Initializes GDK so that it can be used from multiple threads in conjunction with threads_enter and threads_leave.
All GDK and GTK+ calls should be made from the main thread
This call must be made before any use of the main loop from GTK+; to be safe, call it before gtk_init
.