url image preview.coding style
This commit is contained in:
@@ -85,7 +85,8 @@ class Base(object):
|
|||||||
mark = buffer_.create_mark(None, iter_, True)
|
mark = buffer_.create_mark(None, iter_, True)
|
||||||
# start downloading image
|
# start downloading image
|
||||||
gajim.thread_interface(helpers.download_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):
|
def _update_img(self, (mem, alt), mark):
|
||||||
if mem:
|
if mem:
|
||||||
|
|||||||
Reference in New Issue
Block a user