diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2013-11-30 13:00:10 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2013-11-30 13:00:10 +0400 |
commit | 395f9575c8c0546c86f6806752a9e2967a849ccb (patch) | |
tree | 3529af4e1852ea6ceb81a3206873bc7f5e22b19c /src/gajim.py | |
parent | a7a835440263dba56576dfdde68a1a4551374227 (diff) |
Make threads usable under windows so GPG works correctly. Fixes #7565
Diffstat (limited to 'src/gajim.py')
-rw-r--r-- | src/gajim.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |