From 395f9575c8c0546c86f6806752a9e2967a849ccb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 30 Nov 2013 10:00:10 +0100 Subject: [PATCH] Make threads usable under windows so GPG works correctly. Fixes #7565 --- src/gajim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index c000ce42d..1fe186819 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -209,6 +209,7 @@ try: GObject.set_prgname('gajim') from gi.repository import Gtk from gi.repository import Gdk + from gi.repository import GLib except Warning as msg2: if str(msg2) == 'could not open display': print(_('Gajim needs X server to run. Quiting...'), file=sys.stderr) @@ -492,6 +493,7 @@ if __name__ == '__main__': interface.run() try: + GLib.threads_init() Gtk.main() except KeyboardInterrupt: print('KeyboardInterrupt', file=sys.stderr)