From eccef5b092906e6b4ecd293106a6d0d87f1e7d2a Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 21 Jun 2012 08:04:43 +0000 Subject: EventIcon: Make the child window of the event box invisible 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 --- diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py index 970446a..d99af7d 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) -- cgit v0.9.1