Commit 4dec6135 authored by Yann Leboulanger's avatar Yann Leboulanger

allow to add EventBox to conversation textview for plugins for example.

parent 49f691ac
......@@ -122,6 +122,11 @@ class TextViewImage(gtk.Image):
if not parent:
self._disconnect_signals()
return
if isinstance(parent, gtk.EventBox):
parent = parent.get_parent()
if not parent:
self._disconnect_signals()
return
self._do_connect(parent, 'style-set', self.do_queue_draw)
self._do_connect(parent, 'focus-in-event', self.do_queue_draw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment