Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index 21f836e..56f3af3 100644
--- a/activity.py
+++ b/activity.py
@@ -159,13 +159,13 @@ class AnimateActivity(activity.Activity):
self._animation.set_fps(fps)
def _set_return_mode(self, widget):
- self._animation.set_mode(animation.RETURN_MODE)
+ self._animation.set_mode(animation.MODE_RETURN)
def _set_normal_mode(self, widget):
- self._animation.set_mode(animation.NORMAL_MODE)
+ self._animation.set_mode(animation.MODE_NORMAL)
def _set_pingpong_mode(self, widget):
- self._animation.set_mode(animation.PING_PONG_MODE)
+ self._animation.set_mode(animation.MODE_PING_PONG)
def _previous_frame(self, widget):
self._animation.back()
@@ -209,12 +209,13 @@ class AnimateActivity(activity.Activity):
del self._animation_mode
- canvas.pack_start(self._animation, True, True, 0)
+ canvas.pack_start(self._animation, True, True, 0)
def _current_frame_updated_cb(self, widget, index):
if widget.frames_reverse:
index = len(widget.frames) - 1 - index
self._frames_list.select_frame(index)
+ return index
def _view_fullscreen(self, widget):
self._frames_list.hide()