[Xfce4-commits] <thunar:master> Don't queue tumbler requests for non-regular files.

Nick Schermer noreply at xfce.org
Sun Nov 11 16:20:01 CET 2012


Updating branch refs/heads/master
         to fda9d5911f8faf7e56fae012cb9f713d862190a7 (commit)
       from b392a537bfca65ad672b877653690463da1ca3b2 (commit)

commit fda9d5911f8faf7e56fae012cb9f713d862190a7
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 11 15:25:40 2012 +0100

    Don't queue tumbler requests for non-regular files.
    
    The icon factory doesn't renderer them, so skip those
    for queueing.

 thunar/thunar-thumbnailer.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index c9f780f..eae0825 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -893,6 +893,10 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer,
    * processed (and awaiting to be refreshed) */
   for (lp = files; lp != NULL; lp = lp->next)
     {
+      /* the icon factory only loads icons for regular files */
+      if (!thunar_file_is_regular (lp->data))
+        goto unsupported_type;
+
       /* get the current thumb state */
       thumb_state = thunar_file_get_thumb_state (lp->data);
 
@@ -914,6 +918,8 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer,
         }
       else
         {
+          unsupported_type:
+
           /* we have no thumb for this mime-type / scheme combination,
            * so don't both in the future */
           thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE);


More information about the Xfce4-commits mailing list