summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
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;