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/keyevents.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/keyevents.c') diff --git a/src/keyevents.c b/src/keyevents.c index 7bfacc8..e4b7c7b 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -227,7 +227,7 @@ void feh_event_invoke_action(winwidget winwid, unsigned char action) { if (opt.actions[action]) { if (opt.slideshow) { - feh_action_run(FEH_FILE(winwid->file->data), opt.actions[action]); + feh_action_run(FEH_FILE(winwid->file->data), opt.actions[action], winwid); if (opt.hold_actions[action]) feh_reload_image(winwid, 1, 1); @@ -236,7 +236,7 @@ void feh_event_invoke_action(winwidget winwid, unsigned char action) } else if ((winwid->type == WIN_TYPE_SINGLE) || (winwid->type == WIN_TYPE_THUMBNAIL_VIEWER)) { - feh_action_run(FEH_FILE(winwid->file->data), opt.actions[action]); + feh_action_run(FEH_FILE(winwid->file->data), opt.actions[action], winwid); if (opt.hold_actions[action]) feh_reload_image(winwid, 1, 1); @@ -247,7 +247,7 @@ void feh_event_invoke_action(winwidget winwid, unsigned char action) thumbfile = feh_thumbnail_get_selected_file(); if (thumbfile) { - feh_action_run(thumbfile, opt.actions[action]); + feh_action_run(thumbfile, opt.actions[action], winwid); if (!opt.hold_actions[action]) feh_thumbnail_mark_removed(thumbfile, 0); -- cgit v1.2.3