diff options
author | ANogin <github@nogin.org> | 2013-12-08 12:21:45 -0800 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-01-12 16:57:56 +0100 |
commit | a961c8b322cd961dee845840c3fbebaff75402b8 (patch) | |
tree | 92f80a50b6ca4f14e1d53525c6449839478dff61 /src/keyevents.c | |
parent | 44d33fc2a05415cf20af360ee9f8bffd0d40460d (diff) |
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).
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |