changeset b9ab69e17132 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b9ab69e17132 description: run plugin_downbloaded callback in the main thread instead of in Ftp Thread. Fixes freeze under windows when plugin is downloaded
diffstat:
plugins/plugin_installer/plugin_installer.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e8d2a188182f -r b9ab69e17132 plugins/plugin_installer/plugin_installer.py --- a/plugins/plugin_installer/plugin_installer.py Wed Aug 31 12:04:11 2011 +0200 +++ b/plugins/plugin_installer/plugin_installer.py Sun Aug 28 10:08:38 2011 +0200 @@ -432,7 +432,8 @@ print 'ERROR: cannot read file "%s"' % filename os.unlink(filename) self.ftp.quit() - self.window.emit('plugin_downloaded', self.remote_dirs) + gobject.idle_add(self.window.emit, 'plugin_downloaded', + self.remote_dirs) gobject.source_remove(self.pulse)