From 020917ac02d929a18c6e7b0a1b42e234558fefec Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 21 Jun 2012 10:18:00 +0200 Subject: [PATCH] EventIcon: all the events go directly to the event box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Benjamin Berg Acked-by: Manuel QuiƱones --- src/sugar3/graphics/icon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py index d99af7d1..175d235b 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():