Ephoto: Allow slideshow navigation when slideshow is not playing.

This commit is contained in:
Stephen okra Houston 2016-07-22 12:16:41 -05:00
parent 1084841bed
commit 7841bbce32
1 changed files with 2 additions and 8 deletions

View File

@ -151,6 +151,7 @@ _on_transition_end(void *data, Evas_Object *obj EINA_UNUSED,
if (ss->timer)
ecore_timer_del(ss->timer);
ss->timer = NULL;
if (ss->playing)
ss->timer = ecore_timer_add(ss->timeout, _slideshow_transition, ss);
}
@ -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