diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2009-05-11 00:02:46 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2009-05-11 00:02:46 +0400 |
commit | c15f487deb50373f085fd13be9b0fd1b42785636 (patch) | |
tree | 82a97c7fc78aabef7b196ad922f9d47ca23a7fb2 | |
parent | 1290a751e1cd846643b8ed2dcf5040000561eff1 (diff) |
don't call gtk.gdk/threads_init() under windows. Fixes #5020
-rw-r--r-- | src/gajim.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gajim.py b/src/gajim.py index e289370ac..b486c2d2c 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -3529,7 +3529,10 @@ if __name__ == '__main__': Interface() try: - gtk.gdk.threads_init() + if os.name != 'nt': + # This makes Gajim unusable under windows, and threads are used only + # for GPG, so not under windows + gtk.gdk.threads_init() gtk.main() except KeyboardInterrupt: print >> sys.stderr, 'KeyboardInterrupt' |