Ticket #3894: 3894-preliminar.patch

File 3894-preliminar.patch, 1002 bytes (added by manuq, 12 years ago)

Preliminar toolkit-gtk3 patch.

  • src/sugar3/graphics/icon.py

    diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
    index 9008f3f..f0cde22 100644
    a b class EventIcon(Gtk.EventBox): 
    500500        self.connect('destroy', self.__destroy_cb)
    501501
    502502    def do_draw(self, cr):
     503        allocation = self.get_allocation()
    503504        surface = self._buffer.get_surface()
    504505        if surface:
    505             allocation = self.get_allocation()
    506 
    507506            x = (allocation.width - surface.get_width()) / 2
    508507            y = (allocation.height - surface.get_height()) / 2
    509508
    class EventIcon(Gtk.EventBox): 
    513512            else:
    514513                cr.paint_with_alpha(self._alpha)
    515514
     515        context = self.get_style_context()
     516        Gtk.render_frame(context, cr, 0, 0,
     517                         allocation.width,
     518                         allocation.height)
     519
    516520    def do_get_preferred_height(self):
    517521        surface = self._buffer.get_surface()
    518522        if surface: