[Xfce4-commits] <thunar:migration-to-gio> Really minor changes.

Jannis Pohlmann jannis at xfce.org
Fri Aug 21 05:56:01 CEST 2009


Updating branch refs/heads/migration-to-gio
         to 56708e9e6a73d063357be717d12e19de21899e00 (commit)
       from fa99ba46e9bd63cd2ba5e9dfbfcd4282f3d330d0 (commit)

commit 56708e9e6a73d063357be717d12e19de21899e00
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Fri Aug 21 05:53:34 2009 +0200

    Really minor changes.

 thunar/thunar-file.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 7ba6566..53010c4 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -126,7 +126,7 @@ G_LOCK_DEFINE_STATIC (file_cache_mutex);
 static ThunarUserManager *user_manager;
 static ThunarMetafile    *metafile;
 static GObjectClass      *thunar_file_parent_class;
-static GHashTable        *file_cache; /* TODO Make the cache thread safe! */
+static GHashTable        *file_cache;
 static guint32            effective_user_id;
 static GQuark             thunar_file_thumb_path_quark;
 static GQuark             thunar_file_watch_count_quark;
@@ -897,7 +897,6 @@ thunar_file_load (ThunarFile   *file,
     (file->flags & ~THUNAR_FILE_THUMB_STATE_MASK) | THUNAR_FILE_THUMB_STATE_UNKNOWN;
 
   /* determine thumbnail path */
-  /* TODO monitor the thumbnail path for changes */
   uri = g_file_get_uri (file->gfile);
   md5_hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1);
   basename = g_strdup_printf ("%s.png", md5_hash);
@@ -907,6 +906,8 @@ thunar_file_load (ThunarFile   *file,
   g_free (md5_hash);
   g_free (uri);
 
+  /* TODO monitor the thumbnail file for changes */
+
   if (err != NULL)
     {
       g_propagate_error (error, err);
@@ -1550,9 +1551,9 @@ thunar_file_get_mode_string (const ThunarFile *file)
    * 'D' for doors. Do we still need those? */
   switch (kind)
     {
-    case G_FILE_TYPE_SYMBOLIC_LINK:       text[0] = 'l'; break;
-    case G_FILE_TYPE_REGULAR:             text[0] = '-'; break;
-    case G_FILE_TYPE_DIRECTORY:           text[0] = 'd'; break;
+    case G_FILE_TYPE_SYMBOLIC_LINK: text[0] = 'l'; break;
+    case G_FILE_TYPE_REGULAR:       text[0] = '-'; break;
+    case G_FILE_TYPE_DIRECTORY:     text[0] = 'd'; break;
     case G_FILE_TYPE_SPECIAL:
     case G_FILE_TYPE_UNKNOWN:
     default:



More information about the Xfce4-commits mailing list