changeset 3997ab204178 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=3997ab204178
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 10f1f986a00b -r 3997ab204178 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
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits