EventIcon: make sure we are able to dismiss the Palette
Without this patch when tapping on an EventIcon we do get a GDK_CROSSING_UNGRAB leave event when the Palette is raised. Because of this the Invoker does not know how to popdown the Palette when you tap outside or when clicking on actions in the Palette itself. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
parent
080f25e73b
commit
590785f7d1
@ -491,6 +491,9 @@ class EventIcon(Gtk.EventBox):
|
|||||||
Gtk.EventBox.__init__(self)
|
Gtk.EventBox.__init__(self)
|
||||||
self.set_visible_window(False)
|
self.set_visible_window(False)
|
||||||
self.set_above_child(True)
|
self.set_above_child(True)
|
||||||
|
self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
|
||||||
|
Gdk.EventMask.TOUCH_MASK |
|
||||||
|
Gdk.EventMask.BUTTON_RELEASE_MASK)
|
||||||
for key, value in kwargs.iteritems():
|
for key, value in kwargs.iteritems():
|
||||||
self.set_property(key, value)
|
self.set_property(key, value)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user