diff --git a/src/sugar3/graphics/tray.py b/src/sugar3/graphics/tray.py
index 82e1d97..3c54aca 100644
a
|
b
|
class _IconWidget(Gtk.EventBox): |
417 | 417 | |
418 | 418 | def do_draw(self, cr): |
419 | 419 | palette = self.get_parent().palette |
| 420 | |
| 421 | if palette and palette.is_up(): |
| 422 | allocation = self.get_allocation() |
| 423 | # draw a black background, has been done by the engine before |
| 424 | cr.set_source_rgb(0, 0, 0) |
| 425 | cr.rectangle(0, 0, allocation.width, allocation.height) |
| 426 | cr.paint() |
| 427 | |
| 428 | Gtk.EventBox.do_draw(self, cr) |
| 429 | |
420 | 430 | if palette and palette.is_up(): |
421 | 431 | invoker = palette.props.invoker |
422 | 432 | invoker.draw_rectangle(cr, palette) |
423 | 433 | |
424 | | Gtk.EventBox.do_draw(self, cr) |
| 434 | return False |
425 | 435 | |
426 | 436 | def get_icon(self): |
427 | 437 | return self._icon |