[Xfce4-commits] <thunar:master> Don't bother about Thumbnails in .thumbnails.

Nick Schermer noreply at xfce.org
Sat Oct 13 16:12:03 CEST 2012


Updating branch refs/heads/master
         to f112e549d108171f4d264951b95ee06104bbb115 (commit)
       from 569d4db2c78f076e29aa24d670a920d89500bcad (commit)

commit f112e549d108171f4d264951b95ee06104bbb115
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Oct 5 15:04:15 2012 +0200

    Don't bother about Thumbnails in .thumbnails.
    
    Bit too much to check this fore every file.

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

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 6926ec9..52d223d 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -683,9 +683,7 @@ thunar_file_info_reload (ThunarFile   *file,
 {
   const gchar *target_uri;
   GKeyFile    *key_file;
-  GFile       *thumbnail_dir;
   gchar       *p;
-  gchar       *thumbnail_dir_path;
   const gchar *display_name;
   gboolean     is_secure = FALSE;
   gchar       *casefold;
@@ -706,21 +704,6 @@ thunar_file_info_reload (ThunarFile   *file,
   file->basename = g_file_get_basename (file->gfile);
   _thunar_assert (file->basename != NULL);
 
-  /* create a GFile for the $HOME/.thumbnails/ directory */
-  thumbnail_dir_path = g_build_filename (xfce_get_homedir (), ".thumbnails", NULL);
-  thumbnail_dir = g_file_new_for_path (thumbnail_dir_path);
-
-  /* check if this file is a thumbnail */
-  if (g_file_has_prefix (file->gfile, thumbnail_dir))
-    {
-      /* use the filename as custom icon name for thumbnails */
-      file->custom_icon_name = g_file_get_path (file->gfile);
-    }
-
-  /* free $HOME/.thumbnails/ GFile and path */
-  g_object_unref (thumbnail_dir);
-  g_free (thumbnail_dir_path);
-
   /* check if this file is a desktop entry */
   if (thunar_file_is_desktop_file (file, &is_secure) && is_secure)
     {


More information about the Xfce4-commits mailing list