From fbaf3becdbbfd45fa7a722501f106cee29b12d70 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Wed, 9 May 2012 12:16:48 +0400
Subject: [PATCH] fix threads problem in OpenBSD. Fixes #7154

---
 src/gajim.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gajim.py b/src/gajim.py
index 49ba4122ff..80d21953a4 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -454,6 +454,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'
-- 
GitLab