From a961c8b322cd961dee845840c3fbebaff75402b8 Mon Sep 17 00:00:00 2001 From: ANogin Date: Sun, 8 Dec 2013 12:21:45 -0800 Subject: Pass windidget to feh_action_run, making it possible to use format specifiers like %o and %z in slideshow actions (I would like to use this to zoom in, pan, and then use an action to crop the window to zoomed in view). --- src/slideshow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slideshow.c') diff --git a/src/slideshow.c b/src/slideshow.c index b15c360..b57d5c5 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -450,12 +450,12 @@ char *slideshow_create_name(feh_file * file, winwidget winwid) return(s); } -void feh_action_run(feh_file * file, char *action) +void feh_action_run(feh_file * file, char *action, winwidget winwid) { if (action) { char *sys; D(("Running action %s\n", action)); - sys = feh_printf(action, file, NULL); + sys = feh_printf(action, file, winwid); if (opt.verbose && !opt.list && !opt.customlist) fprintf(stderr, "Running action -->%s<--\n", sys); -- cgit v1.2.3