diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-02-26 15:46:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-02-26 15:46:31 +0100 |
commit | a0072d60705b9764970d435ec59dfc5c53158748 (patch) | |
tree | 19198c899753f80eae7f39450c075324b6f5e994 /src/thumbnail.c | |
parent | f05ba61aefee0b5a1f3c3c6413dd5501505f3ef4 (diff) |
Also update window title for thumbnail windows (closes #280)
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r-- | src/thumbnail.c | 13 |
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); +} |