Make threads usable under windows so GPG works correctly. Fixes #7565
This commit is contained in:
parent
a7a8354402
commit
395f9575c8
|
@ -209,6 +209,7 @@ try:
|
||||||
GObject.set_prgname('gajim')
|
GObject.set_prgname('gajim')
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
|
from gi.repository import GLib
|
||||||
except Warning as msg2:
|
except Warning as msg2:
|
||||||
if str(msg2) == 'could not open display':
|
if str(msg2) == 'could not open display':
|
||||||
print(_('Gajim needs X server to run. Quiting...'), file=sys.stderr)
|
print(_('Gajim needs X server to run. Quiting...'), file=sys.stderr)
|
||||||
|
@ -492,6 +493,7 @@ if __name__ == '__main__':
|
||||||
interface.run()
|
interface.run()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
GLib.threads_init()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('KeyboardInterrupt', file=sys.stderr)
|
print('KeyboardInterrupt', file=sys.stderr)
|
||||||
|
|
Loading…
Reference in New Issue