diff options
author | Simon Schampijer <simon@schampijer.de> | 2012-06-21 08:18:00 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2012-06-21 12:28:01 (GMT) |
commit | 020917ac02d929a18c6e7b0a1b42e234558fefec (patch) | |
tree | 0e01c6a1be2b05e71462978f6d0c25d50958c6d5 | |
parent | eccef5b092906e6b4ecd293106a6d0d87f1e7d2a (diff) |
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>
-rw-r--r-- | src/sugar3/graphics/icon.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py index d99af7d..175d235 100644 --- a/src/sugar3/graphics/icon.py +++ b/src/sugar3/graphics/icon.py @@ -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(): |