Leaves a critical region begun with threads_enter.
All GDK and GTK+ calls should be made from the main thread