From c15f487deb50373f085fd13be9b0fd1b42785636 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 10 May 2009 20:02:46 +0000 Subject: [PATCH] don't call gtk.gdk/threads_init() under windows. Fixes #5020 --- src/gajim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'