From aa22a1466e747a67fbae482d0251545ebb73318f Mon Sep 17 00:00:00 2001 From: Levi Smith Date: Sat, 4 Sep 2010 03:58:43 -0700 Subject: 1) winwidget.c winwidget.h New function winwidget_update_caption using code in winwindget_render_image. This code was removed from the latter, and replaced with a call to winwidget_update_caption. 2) Image caption is updated after running action when in slideshow mode. 3) Running action in slideshow mode no longer changes the image automatically. --- src/keyevents.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/keyevents.c') diff --git a/src/keyevents.c b/src/keyevents.c index 08d444a..8bb85f5 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -36,7 +36,9 @@ void feh_event_invoke_action(winwidget winwid, char *action) if (action) { if (opt.slideshow) { feh_action_run(FEH_FILE(winwid->file->data), action); - slideshow_change_image(winwid, SLIDE_NEXT); + winwidget_update_caption(winwid); + /* slideshow_change_image(winwid, SLIDE_NEXT); */ + } else if ((winwid->type == WIN_TYPE_SINGLE) || (winwid->type == WIN_TYPE_THUMBNAIL_VIEWER)) { feh_action_run(FEH_FILE(winwid->file->data), action); -- cgit v1.2.3