Ticket #3989: 0002-Port-EventPulsingIcon-from-EventIcon-to-CanvasIcon-S.patch

File 0002-Port-EventPulsingIcon-from-EventIcon-to-CanvasIcon-S.patch, 1.6 KB (added by manuq, 12 years ago)

Fixup patch for shell 02 - neighborhood icons

  • src/jarabe/view/pulsingicon.py

    From 3ff6fe0b1fa94e3d5c5a6623c15d67ce3733ffd8 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 15 Oct 2012 10:42:11 -0300
    Subject: [PATCH shell 2/2] Port EventPulsingIcon from EventIcon to CanvasIcon
     - SL #3989
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    I was wrong skipping them from 7a2fbf62 .  They are used for the AP
    icons in the neighborhood view, not for the pulsing icon in the
    activities startup.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/view/pulsingicon.py | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/jarabe/view/pulsingicon.py b/src/jarabe/view/pulsingicon.py
    index 33f2c80..81e2e03 100644
    a b from gi.repository import GObject 
    2020
    2121from sugar3.graphics.icon import Icon
    2222from sugar3.graphics import style
    23 from sugar3.graphics.icon import EventIcon
     23from sugar3.graphics.icon import CanvasIcon
    2424
    2525
    2626_INTERVAL = 100
    class PulsingIcon(Icon): 
    171171            self._palette.destroy()
    172172
    173173
    174 class EventPulsingIcon(EventIcon):
     174class EventPulsingIcon(CanvasIcon):
    175175    __gtype_name__ = 'SugarEventPulsingIcon'
    176176
    177177    def __init__(self, **kwargs):
    class EventPulsingIcon(EventIcon): 
    181181        self._paused = False
    182182        self._pulsing = False
    183183
    184         EventIcon.__init__(self, **kwargs)
     184        CanvasIcon.__init__(self, **kwargs)
    185185
    186186        self.connect('destroy', self.__destroy_cb)
    187187