parent
3d8be9ebe2
commit
ab85729fe5
1 changed files with 11 additions and 11 deletions
|
@ -953,17 +953,17 @@ class ConversationTextview(GObject.GObject):
|
||||||
end_iter = iter_
|
end_iter = iter_
|
||||||
else:
|
else:
|
||||||
end_iter = buffer_.get_end_iter()
|
end_iter = buffer_.get_end_iter()
|
||||||
if gajim.config.get('emoticons_theme') and graphics:
|
|
||||||
pixbuf = emoticons.get_pixbuf(possible_emot_ascii_caps)
|
pixbuf = emoticons.get_pixbuf(possible_emot_ascii_caps)
|
||||||
if pixbuf:
|
if gajim.config.get('emoticons_theme') and pixbuf and graphics:
|
||||||
# it's an emoticon
|
# it's an emoticon
|
||||||
anchor = buffer_.create_child_anchor(end_iter)
|
anchor = buffer_.create_child_anchor(end_iter)
|
||||||
img = TextViewImage(anchor,
|
img = TextViewImage(anchor,
|
||||||
GLib.markup_escape_text(special_text))
|
GLib.markup_escape_text(special_text))
|
||||||
img.set_from_pixbuf(pixbuf)
|
img.set_from_pixbuf(pixbuf)
|
||||||
img.show()
|
img.show()
|
||||||
self.images.append(img)
|
self.images.append(img)
|
||||||
self.tv.add_child_at_anchor(img, anchor)
|
self.tv.add_child_at_anchor(img, anchor)
|
||||||
elif special_text.startswith('www.') or \
|
elif special_text.startswith('www.') or \
|
||||||
special_text.startswith('ftp.') or \
|
special_text.startswith('ftp.') or \
|
||||||
text_is_valid_uri and not is_xhtml_link:
|
text_is_valid_uri and not is_xhtml_link:
|
||||||
|
|
Loading…
Add table
Reference in a new issue