changeset 1a3dc2a7f03d in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=1a3dc2a7f03d
description: fix threads problem in OpenBSD. Fixes #7154

diffstat:

 src/gajim.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 864301a74d3f -r 1a3dc2a7f03d src/gajim.py
--- a/src/gajim.py      Tue Apr 24 14:18:54 2012 +0400
+++ b/src/gajim.py      Wed May 09 12:16:48 2012 +0400
@@ -454,6 +454,9 @@
             # 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'
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to