$NetBSD: patch-aa,v 1.2 2009/07/18 20:35:27 wiz Exp $

--- gtk/gtk.override.orig	2009-08-12 22:55:36.000000000 +0000
+++ gtk/gtk.override
@@ -1238,7 +1238,9 @@ _wrap_gtk_main(PyObject *self)
     pyg_begin_allow_threads;
     g_source_attach(main_watch, NULL);
     g_source_unref(main_watch);
+    gdk_threads_enter();
     gtk_main();
+    gdk_threads_leave();
     g_source_destroy(main_watch);
     pyg_end_allow_threads;
     if (PyErr_Occurred())
