From eccef5b092906e6b4ecd293106a6d0d87f1e7d2a Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 21 Jun 2012 10:04:43 +0200 Subject: [PATCH] EventIcon: Make the child window of the event box invisible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We do use the EventBox only to receive events, hence the window that the even box creates should be a GDK_INPUT_ONLY window, which means that it is invisible and only serves to receive events [1]. [1] http://developer.gnome.org/gtk3/3.4/GtkEventBox.html#gtk-event-box-set-visible-window Signed-off-by: Simon Schampijer Reviewed-by: Benjamin Berg Acked-by: Manuel QuiƱones --- src/sugar3/graphics/icon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py index 970446a7..d99af7d1 100644 --- a/src/sugar3/graphics/icon.py +++ b/src/sugar3/graphics/icon.py @@ -561,6 +561,8 @@ class EventIcon(Gtk.EventBox): def __init__(self, **kwargs): Gtk.EventBox.__init__(self) + self.set_visible_window(False) + self._icon = Icon() for key, value in kwargs.iteritems(): self._icon.set_property(key, value)