Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-05-11 00:02:46 +0400
committerYann Leboulanger <asterix@lagaule.org>2009-05-11 00:02:46 +0400
commitc15f487deb50373f085fd13be9b0fd1b42785636 (patch)
tree82a97c7fc78aabef7b196ad922f9d47ca23a7fb2
parent1290a751e1cd846643b8ed2dcf5040000561eff1 (diff)
don't call gtk.gdk/threads_init() under windows. Fixes #5020
-rw-r--r--src/gajim.py5
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'