Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar3/graphics/icon.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
index c602121..3286bca 100644
--- a/src/sugar3/graphics/icon.py
+++ b/src/sugar3/graphics/icon.py
@@ -490,14 +490,12 @@ class EventIcon(Gtk.EventBox):
Gtk.EventBox.__init__(self)
for key, value in kwargs.iteritems():
self.set_property(key, value)
+ self.set_visible_window(False)
+ self.set_above_child(True)
self._palette_invoker = CursorInvoker()
self._palette_invoker.attach(self)
- # HACK to supress the grey background around the icon
- # won't be needed in GTK3
- self.modify_bg(Gtk.StateType.NORMAL, style.COLOR_WHITE.get_gdk_color())
-
self.connect('destroy', self.__destroy_cb)
def do_draw(self, cr):
@@ -508,7 +506,6 @@ class EventIcon(Gtk.EventBox):
x = (allocation.width - surface.get_width()) / 2
y = (allocation.height - surface.get_height()) / 2
- #cr = self.window.cairo_create()
cr.set_source_surface(surface, x, y)
if self._alpha == 1.0:
cr.paint()