diff options
author | Simon Schampijer <simon@schampijer.de> | 2012-06-21 08:04:43 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2012-06-21 12:28:01 (GMT) |
commit | eccef5b092906e6b4ecd293106a6d0d87f1e7d2a (patch) | |
tree | e18b425c2556495c7c07d536646d3a49f41db7d9 | |
parent | ed8c58a80122eddb1cea046be5a5cef4cdb2e89a (diff) |
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 <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 | 2 |
1 files changed, 2 insertions, 0 deletions
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) |