diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-10-28 11:17:51 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-10-28 11:17:51 (GMT) |
commit | c1cbdec3eb05b4b133de35e0a69cd2a100379326 (patch) | |
tree | 500ef7fb5c66477a7804fb0b813016e5710ecca6 /src/jarabe | |
parent | 4ff4e22a1f85fcf2ebae80c79c5360d8533031d9 (diff) |
Stop the pulser when a pulsing icon is destroyed.
Diffstat (limited to 'src/jarabe')
-rw-r--r-- | src/jarabe/view/pulsingicon.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jarabe/view/pulsingicon.py b/src/jarabe/view/pulsingicon.py index 499ae99..e04b117 100644 --- a/src/jarabe/view/pulsingicon.py +++ b/src/jarabe/view/pulsingicon.py @@ -159,6 +159,7 @@ class PulsingIcon(Icon): palette = property(_get_palette, _set_palette) def __destroy_cb(self, icon): + self._pulser.stop() if self._palette is not None: self._palette.destroy() @@ -174,6 +175,11 @@ class CanvasPulsingIcon(CanvasIcon): CanvasIcon.__init__(self, **kwargs) + self.connect('destroy', self.__destroy_cb) + + def __destroy_cb(self, box): + self._pulser.stop() + def set_pulse_color(self, pulse_color): self._pulse_color = pulse_color self._pulser.update() |