fix showing emoticons
This commit is contained in:
parent
b913acd5ef
commit
23fe7d6c56
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class TextViewImage(Gtk.Image):
|
||||||
self._selected = False
|
self._selected = False
|
||||||
self._disconnect_funcs = []
|
self._disconnect_funcs = []
|
||||||
self.connect('parent-set', self.on_parent_set)
|
self.connect('parent-set', self.on_parent_set)
|
||||||
self.connect('expose-event', self.on_expose)
|
self.connect('draw', self.on_expose)
|
||||||
self.set_tooltip_text(text)
|
self.set_tooltip_text(text)
|
||||||
self.anchor.set_data('plaintext', text)
|
self.anchor.set_data('plaintext', text)
|
||||||
|
|
||||||
|
@ -1087,7 +1087,7 @@ class ConversationTextview(GObject.GObject):
|
||||||
img = TextViewImage(anchor, special_text)
|
img = TextViewImage(anchor, special_text)
|
||||||
animations = gajim.interface.emoticons_animations
|
animations = gajim.interface.emoticons_animations
|
||||||
if not emot_ascii in animations:
|
if not emot_ascii in animations:
|
||||||
animations[emot_ascii] = GdkPixbuf.PixbufAnimation(
|
animations[emot_ascii] = GdkPixbuf.PixbufAnimation.new_from_file(
|
||||||
gajim.interface.emoticons[emot_ascii])
|
gajim.interface.emoticons[emot_ascii])
|
||||||
img.set_from_animation(animations[emot_ascii])
|
img.set_from_animation(animations[emot_ascii])
|
||||||
img.show()
|
img.show()
|
||||||
|
|
Loading…
Add table
Reference in a new issue