url image preview.coding style

This commit is contained in:
Denis Fomin
2012-06-21 12:31:30 +04:00
parent d7dc50dab4
commit e0c61a05c4

View File

@@ -85,7 +85,8 @@ class Base(object):
mark = buffer_.create_mark(None, iter_, True)
# start downloading image
gajim.thread_interface(helpers.download_image, [
self.textview.account, {'src': special_text}],self._update_img, [mark])
self.textview.account, {'src': special_text}], self._update_img,
[mark])
def _update_img(self, (mem, alt), mark):
if mem: