From 020917ac02d929a18c6e7b0a1b42e234558fefec Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 21 Jun 2012 08:18:00 +0000 Subject: 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 Reviewed-by: Benjamin Berg Acked-by: Manuel QuiƱones --- 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(): -- cgit v0.9.1