Make threads usable under windows so GPG works correctly. Fixes #7565

This commit is contained in:
Yann Leboulanger 2013-11-30 10:00:10 +01:00
parent a7a8354402
commit 395f9575c8
1 changed files with 2 additions and 0 deletions

View File

@ -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)