url_image_preview.fix var name
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Url image preview
|
name: Url image preview
|
||||||
short_name: url_image_preview
|
short_name: url_image_preview
|
||||||
version: 0.3
|
version: 0.4
|
||||||
description: Url image preview in chatbox.
|
description: Url image preview in chatbox.
|
||||||
Based on patch in ticket #5300:
|
Based on patch in ticket #5300:
|
||||||
http://trac.gajim.org/attachment/ticket/5300.
|
http://trac.gajim.org/attachment/ticket/5300.
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ 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': url}], 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