$OpenBSD: patch-src_gajim_py,v 1.2 2012/05/09 08:34:42 ajacoutot Exp $

From upstream: https://trac.gajim.org/changeset/1a3dc2a7f03d

--- src/gajim.py.orig	Sun Mar 18 12:25:59 2012
+++ src/gajim.py	Wed May  9 10:34:05 2012
@@ -453,6 +453,9 @@ if __name__ == '__main__':
             # This makes Gajim unusable under windows, and threads are used only
             # for GPG, so not under windows
             gtk.gdk.threads_init()
+            gtk.gdk.threads_enter()
         gtk.main()
+        if os.name != 'nt':
+            gtk.gdk.threads_leave()
     except KeyboardInterrupt:
         print >> sys.stderr, 'KeyboardInterrupt'
