bugfix in threading

This commit is contained in:
Yann Leboulanger 2004-10-21 15:17:02 +00:00
parent aa22e6c943
commit 6e5009a5d6
1 changed files with 2 additions and 1 deletions

View File

@ -2366,7 +2366,6 @@ class plugin:
def __init__(self, quIN, quOUT):
gtk.gdk.threads_init()
# gtk.gdk.threads_enter()
self.queueIN = quIN
self.queueOUT = quOUT
self.send('REG_MESSAGE', 'gtkgui', ['ROSTER', 'WARNING', 'STATUS', \
@ -2448,6 +2447,8 @@ class plugin:
self.systray = systray(self)
else:
self.systray = systrayDummy()
gtk.gdk.threads_enter()
gtk.main()
gtk.gdk.threads_leave()
print _("plugin gtkgui loaded")