diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-12 16:47:09 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-12 16:47:09 (GMT) |
commit | d91c7a90e4348061c6370faf1d6becfc05d34496 (patch) | |
tree | eafcb20b5f9e2b4f46466e18020a609375c5062c /sugar/graphics/animator.py | |
parent | f435a60ca01c0aae7df3264828a374c57218c40d (diff) |
Rework the popup animation to use the new API
Diffstat (limited to 'sugar/graphics/animator.py')
-rw-r--r-- | sugar/graphics/animator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar/graphics/animator.py b/sugar/graphics/animator.py index cf6ef27..00b3e41 100644 --- a/sugar/graphics/animator.py +++ b/sugar/graphics/animator.py @@ -53,7 +53,9 @@ class Animator(gobject.GObject): self.emit('completed') def _next_frame_cb(self): - current_time = min (self._time, time.time() - self._start_time) + current_time = min(self._time, time.time() - self._start_time) + current_time = max(current_time, 0.0) + for animation in self._animations: animation.do_frame(current_time, self._time, self._easing) |