summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-07 12:14:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-07 12:17:07 +0200
commit9087479e3fc31e26cf7629138010be4c877517fa (patch)
tree606776b38ba6664cd736fd422b90dfb841cc1c0a /src/slideshow.c
parente264613a4ac1b7be3d5ab265a3041f57a709750f (diff)
Allow specifying slideshow-delay while starting the slideshow in paused mode
Set --slideshow-delay to a negative value to achieve that. In that case, the actual slideshow-delay will be <value> * (-1), so -D-5 sets slideshow-delay 5 seconds but starts paused. Closes: GH-4 <http://github.com/derf/feh/issues#issue/4>
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index e3791a1..4f95c46 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -63,7 +63,7 @@ void init_slideshow_mode(void)
free(s);
success = 1;
winwidget_show(w);
- if (opt.slideshow_delay >= 0.0)
+ if (opt.slideshow_delay > 0.0)
feh_add_timer(cb_slide_timer, w, opt.slideshow_delay, "SLIDE_CHANGE");
else if (opt.reload > 0)
feh_add_unique_timer(cb_reload_timer, w, opt.reload);
@@ -278,7 +278,7 @@ void slideshow_change_image(winwidget winwid, int change)
if (filelist_len == 0)
eprintf("No more slides in show");
- if (opt.slideshow_delay >= 0.0)
+ if (opt.slideshow_delay > 0.0)
feh_add_timer(cb_slide_timer, winwid, opt.slideshow_delay, "SLIDE_CHANGE");
D_RETURN_(4);
}