Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorMarco 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)
commitf55a19b73c7ecfd734390196e95c245fcd1338a8 (patch)
treec81b3f136fb9d6a28f5749108a4ee9ff8e508287 /sugar/graphics
parent5bfc64d9bef4c5cf202acfd9502133dd3238ec8c (diff)
Implement the transition between zoom view.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/animator.py6
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)