This is an automated email from the git hooks/post-receive script.

alex pushed a 
commit to branch 
master
in repository xfce/thunar.

commit 58b7da73dcee057ba4ed2756ee989c09c1e9c358
Author: HYPERION <h1p8r...@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 c00a286..df240b0 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -904,7 +904,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.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to