[Sugar-devel] [PATCH] Make the child window of the event box insisible
Simon Schampijer
simon at schampijer.de
Thu Jun 21 04:10:31 EDT 2012
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].
A test program to see this is at [2].
[1] http://developer.gnome.org/gtk3/3.4/GtkEventBox.html#gtk-event-box-set-visible-window
[2] dev.laptop.org/~erikos/shell_port/invisible_window.py
Signed-off-by: Simon Schampijer <simon at laptop.org>
---
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 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)
--
1.7.10.4
More information about the Sugar-devel
mailing list