EventIcon: all the events go directly to the event box

Position the event box window above the windows of its child, that way
all events inside the event box will go to the event box. If the window is
below, events in windows of child widgets will first go to that widget,
and then to its parents [1].

[1] http://developer.gnome.org/gtk3/3.4/GtkEventBox.html#gtk-event-box-set-above-child

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
Simon Schampijer 2012-06-21 10:18:00 +02:00
parent eccef5b092
commit 020917ac02

View File

@ -562,6 +562,7 @@ class EventIcon(Gtk.EventBox):
Gtk.EventBox.__init__(self)
self.set_visible_window(False)
self.set_above_child(True)
self._icon = Icon()
for key, value in kwargs.iteritems():