diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-16 09:40:28 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-16 09:40:28 (GMT) |
commit | f55a19b73c7ecfd734390196e95c245fcd1338a8 (patch) | |
tree | c81b3f136fb9d6a28f5749108a4ee9ff8e508287 /sugar/graphics | |
parent | 5bfc64d9bef4c5cf202acfd9502133dd3238ec8c (diff) |
Implement the transition between zoom view.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/animator.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sugar/graphics/animator.py b/sugar/graphics/animator.py index 60ff9f3..1614658 100644 --- a/sugar/graphics/animator.py +++ b/sugar/graphics/animator.py @@ -39,6 +39,10 @@ class Animator(gobject.GObject): def add(self, animation): self._animations.append(animation) + def remove_all(self): + self.stop() + self._animations = [] + def start(self): if self._timeout_sid: self.stop() @@ -51,7 +55,7 @@ class Animator(gobject.GObject): if self._timeout_sid: gobject.source_remove(self._timeout_sid) self._timeout_sid = 0 - self.emit('completed') + self.emit('completed') def _next_frame_cb(self): current_time = min(self._time, time.time() - self._start_time) |