diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
index 9008f3f..f0cde22 100644
a
|
b
|
class EventIcon(Gtk.EventBox): |
500 | 500 | self.connect('destroy', self.__destroy_cb) |
501 | 501 | |
502 | 502 | def do_draw(self, cr): |
| 503 | allocation = self.get_allocation() |
503 | 504 | surface = self._buffer.get_surface() |
504 | 505 | if surface: |
505 | | allocation = self.get_allocation() |
506 | | |
507 | 506 | x = (allocation.width - surface.get_width()) / 2 |
508 | 507 | y = (allocation.height - surface.get_height()) / 2 |
509 | 508 | |
… |
… |
class EventIcon(Gtk.EventBox): |
513 | 512 | else: |
514 | 513 | cr.paint_with_alpha(self._alpha) |
515 | 514 | |
| 515 | context = self.get_style_context() |
| 516 | Gtk.render_frame(context, cr, 0, 0, |
| 517 | allocation.width, |
| 518 | allocation.height) |
| 519 | |
516 | 520 | def do_get_preferred_height(self): |
517 | 521 | surface = self._buffer.get_surface() |
518 | 522 | if surface: |