+ /* This routine gets called by all event handlers
+ indicating that the idle is over. It may also
+ get called from other thread for sending events
+ to the main thread (and processing these in
+ idle time). */
+
+#if wxUSE_THREADS
+ if (!wxThread::IsMain())
+ GDK_THREADS_ENTER ();
+#endif