From 9087479e3fc31e26cf7629138010be4c877517fa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Jun 2010 12:14:00 +0200 Subject: 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 * (-1), so -D-5 sets slideshow-delay 5 seconds but starts paused. Closes: GH-4 --- ChangeLog | 1 + man/feh.1 | 7 ++++++- src/options.c | 6 +++++- src/slideshow.c | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33ae807..ba76300 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ git HEAD * Fix segfault in Thumbnail mode when trying to open a no longer existing image (e.g. when the file was renamed by a previous action) + * Set a negative slideshow-delay to start the slideshow in paused mode Sat Jun 5 21:35:25 CEST 2010 Daniel Friesel = 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); } -- cgit v1.2.3