allow to add EventBox to conversation textview for plugins for example.
This commit is contained in:
parent
026c5e1b1a
commit
c69ab30ed6
1 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,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)
|
||||
|
|
Loading…
Add table
Reference in a new issue