Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-06-27 19:15:16 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-06-27 19:15:16 (GMT)
commit9ad7bf15e615d8aaeb0305348cdd1b265974a2c3 (patch)
tree1f213a2164a1aa1904491a54b18aa10b9c5cdd45
parent656f87340d90225e9ad34c3090c1470818cf30d4 (diff)
Show the first image in the animation 3s instead of 1.5 seconds
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--activity.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/activity.py b/activity.py
index 0520cf9..90ae765 100644
--- a/activity.py
+++ b/activity.py
@@ -249,8 +249,10 @@ class ImageCollectionViewer(gtk.VBox):
self.animation_list[self.anim_order][self.image_order]
self.image.set_from_file(image_file_name)
self.get_root_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.LEFT_PTR))
- self.timer_id = gobject.timeout_add(
- int(DEFAULT_CHANGE_IMAGE_TIME * 1000), self.auto_change_image)
+ time = int(DEFAULT_CHANGE_IMAGE_TIME * 1000)
+ if self.image_order == 0:
+ time = time * 2
+ self.timer_id = gobject.timeout_add(time, self.auto_change_image)
def finish(self):
self._allow_suspend()