summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 012d516..c9cc24f 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -876,3 +876,16 @@ int feh_thumbnail_setup_thumbnail_dir(void)
return status;
}
+
+char *thumbnail_create_name(feh_file * file, winwidget winwid)
+{
+ char *s = NULL;
+
+ if (!opt.thumb_title) {
+ s = estrdup(file->filename);
+ } else {
+ s = estrdup(feh_printf(opt.thumb_title, file, winwid));
+ }
+
+ return(s);
+}