From 7841bbce321d2f10ed2698677093d1aa50dbb03a Mon Sep 17 00:00:00 2001 From: Stephen okra Houston Date: Fri, 22 Jul 2016 12:16:41 -0500 Subject: [PATCH] Ephoto: Allow slideshow navigation when slideshow is not playing. --- src/bin/ephoto_slideshow.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/bin/ephoto_slideshow.c b/src/bin/ephoto_slideshow.c index e608123..6c08149 100644 --- a/src/bin/ephoto_slideshow.c +++ b/src/bin/ephoto_slideshow.c @@ -151,7 +151,8 @@ _on_transition_end(void *data, Evas_Object *obj EINA_UNUSED, if (ss->timer) ecore_timer_del(ss->timer); ss->timer = NULL; - ss->timer = ecore_timer_add(ss->timeout, _slideshow_transition, ss); + if (ss->playing) + ss->timer = ecore_timer_add(ss->timeout, _slideshow_transition, ss); } static Evas_Object * @@ -219,13 +220,6 @@ _slideshow_transition(void *data) Ephoto_Slideshow *ss = data; char buf[PATH_MAX]; - if (ss->playing == 0) - { - if (ss->timer) - ecore_timer_del(ss->timer); - ss->timer = NULL; - return EINA_FALSE; - } if (ss->timer_end) ss->current += 1; else