Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/graphics/tray.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/graphics/tray.py')
-rw-r--r--src/sugar3/graphics/tray.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sugar3/graphics/tray.py b/src/sugar3/graphics/tray.py
index 9d12883..c0e5679 100644
--- a/src/sugar3/graphics/tray.py
+++ b/src/sugar3/graphics/tray.py
@@ -432,11 +432,21 @@ class _IconWidget(Gtk.EventBox):
def do_draw(self, cr):
palette = self.get_parent().palette
+
+ if palette and palette.is_up():
+ allocation = self.get_allocation()
+ # draw a black background, has been done by the engine before
+ cr.set_source_rgb(0, 0, 0)
+ cr.rectangle(0, 0, allocation.width, allocation.height)
+ cr.paint()
+
+ Gtk.EventBox.do_draw(self, cr)
+
if palette and palette.is_up():
invoker = palette.props.invoker
invoker.draw_rectangle(cr, palette)
- Gtk.EventBox.do_draw(self, cr)
+ return False
def get_icon(self):
return self._icon