[Xfce4-commits] <thunar:master> Use macro names for attributes.

Nick Schermer noreply at xfce.org
Sun Nov 11 01:36:02 CET 2012


Updating branch refs/heads/master
         to 23b35cc2efe1d0fd0801622cb9385753794f2f67 (commit)
       from bf50d845959d7b2cff3ec2c5b964f657a30f8461 (commit)

commit 23b35cc2efe1d0fd0801622cb9385753794f2f67
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Nov 10 23:17:19 2012 +0100

    Use macro names for attributes.
    
    Those are defined these days.

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

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index c3118bb..13b9ef0 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -2861,7 +2861,7 @@ thunar_file_get_deletion_date (const ThunarFile *file,
   _thunar_return_val_if_fail (THUNAR_IS_FILE (file), NULL);
   _thunar_return_val_if_fail (G_IS_FILE_INFO (file->info), NULL);
 
-  date = g_file_info_get_attribute_string (file->info, "trash::deletion-date");
+  date = g_file_info_get_attribute_string (file->info, G_FILE_ATTRIBUTE_TRASH_DELETION_DATE);
   if (G_UNLIKELY (date == NULL))
     return NULL;
 
@@ -2893,7 +2893,7 @@ thunar_file_get_original_path (const ThunarFile *file)
   if (file->info == NULL)
     return NULL;
 
-  return g_file_info_get_attribute_byte_string (file->info, "trash::orig-path");
+  return g_file_info_get_attribute_byte_string (file->info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH);
 }
 
 
@@ -3323,7 +3323,7 @@ thunar_file_get_preview_icon (const ThunarFile *file)
   _thunar_return_val_if_fail (THUNAR_IS_FILE (file), NULL);
   _thunar_return_val_if_fail (G_IS_FILE_INFO (file->info), NULL);
 
-  icon = g_file_info_get_attribute_object (file->info, "preview::icon");
+  icon = g_file_info_get_attribute_object (file->info, G_FILE_ATTRIBUTE_PREVIEW_ICON);
   if (G_LIKELY (icon != NULL))
     return G_ICON (icon);
 


More information about the Xfce4-commits mailing list