[Xfce4-commits] [xfce/thunar] 01/01: Add support for folder.jpg (Bug #14576)
noreply at xfce.org
noreply at xfce.org
Fri Aug 24 15:53:02 CEST 2018
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 4
in repository xfce/thunar.
commit 543c23b0f011dde5a571bca3525e80bb7e273561
Author: HYPERION <h1p8r10n at yandex.com>
Date: Wed Aug 22 23:32:35 2018 +0200
Add support for folder.jpg
(Bug #14576)
---
thunar/thunar-icon-factory.c | 2 +-
thunar/thunar-thumbnailer.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c
index dfadb6e..9b899c4 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -877,7 +877,7 @@ thunar_icon_factory_load_file_icon (ThunarIconFactory *factory,
/* check if thumbnails are enabled and we can display a thumbnail for the item */
if (thunar_icon_factory_get_show_thumbnail (factory, file)
- && thunar_file_is_regular (file))
+ && (thunar_file_is_regular (file) || thunar_file_is_directory (file)) )
{
/* determine the preview icon first */
gicon = thunar_file_get_preview_icon (file);
diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index 0fca0b9..525445f 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -405,8 +405,8 @@ thunar_thumbnailer_begin_job (ThunarThumbnailer *thumbnailer,
* processed (and awaiting to be refreshed) */
for (lp = job->files; lp != NULL; lp = lp->next)
{
- /* the icon factory only loads icons for regular files */
- if (!thunar_file_is_regular (lp->data))
+ /* the icon factory only loads icons for regular files and folders */
+ if (!thunar_file_is_regular (lp->data) && !thunar_file_is_directory (lp->data))
{
thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE);
continue;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list