summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
authorOlof-Joachim Frahm <Olof.Frahm@web.de>2011-09-29 15:37:23 +0200
committerOlof-Joachim Frahm <Olof.Frahm@web.de>2011-09-29 15:37:23 +0200
commit0bab331e21a046a1ec775f188feadd300c9a57f8 (patch)
tree17a5746e6879d2341843a8ddae470c8e9d0dca74 /src/thumbnail.c
parent88c1d182b11c442cf8c0930e682b7ad571e9212d (diff)
Thumbnail view now allows to execute actions.
Only if a previously selected item (mouse over, keyboard) is available though.
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 16dbcf3..033fd85 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -1005,6 +1005,13 @@ inline void feh_thumbnail_show_selected()
feh_thumbnail_show_fullsize(td.selected->file);
}
+inline feh_file* feh_thumbnail_get_selected_file()
+{
+ if (td.selected)
+ return td.selected->file;
+ return NULL;
+}
+
int feh_thumbnail_setup_thumbnail_dir(void)
{
int status = 0;