[Xfce4-commits] <thunar:nick/new-shortcuts-pane-model> Don't bother about Thumbnails in .thumbnails.

Nick Schermer noreply at xfce.org
Fri Oct 5 23:04:04 CEST 2012


Updating branch refs/heads/nick/new-shortcuts-pane-model
         to 4dea8be834bbf4b384acb614bf5ff0f1e006adae (commit)
       from 5ee2406a74895b795185244155e1727c39ef4da8 (commit)

commit 4dea8be834bbf4b384acb614bf5ff0f1e006adae
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