$NetBSD: patch-aa,v 1.1 2008/03/14 14:20:22 drochner Exp $

--- ./gtk/gtk.override.orig	2008-03-12 17:24:10.000000000 +0100
+++ ./gtk/gtk.override
@@ -1183,7 +1183,9 @@ _wrap_gtk_main(PyObject *self)
     main_watch = pygtk_main_watch_new();
     pyg_begin_allow_threads;
     g_source_attach(main_watch, NULL);
+    gdk_threads_enter();
     gtk_main();
+    gdk_threads_leave();
     g_source_destroy(main_watch);
     pyg_end_allow_threads;
     if (PyErr_Occurred())
