Fixed inter-thread gdk_threads_enter()/gdk_threads_leave() protection.