[gvfs] trash: Use the symbolic names for trash:: attributes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] trash: Use the symbolic names for trash:: attributes
- Date: Thu, 14 Mar 2013 22:03:15 +0000 (UTC)
commit 31afcc10efa4ee3375a3c4722302924b664cc49c
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 27 15:22:18 2012 +0100
trash: Use the symbolic names for trash:: attributes
https://bugzilla.gnome.org/show_bug.cgi?id=695836
daemon/gvfsbackendtrash.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gvfsbackendtrash.c b/daemon/gvfsbackendtrash.c
index 7e432d9..9e99cf9 100644
--- a/daemon/gvfsbackendtrash.c
+++ b/daemon/gvfsbackendtrash.c
@@ -500,7 +500,7 @@ trash_backend_add_info (TrashItem *item,
g_file_info_set_display_name (info, basename);
g_file_info_set_attribute_byte_string (info,
- "trash::orig-path",
+ G_FILE_ATTRIBUTE_TRASH_ORIG_PATH,
path);
g_free (basename);
g_free (path);
@@ -523,7 +523,7 @@ trash_backend_add_info (TrashItem *item,
if (delete_date)
g_file_info_set_attribute_string (info,
- "trash::deletion-date",
+ G_FILE_ATTRIBUTE_TRASH_DELETION_DATE,
delete_date);
}
@@ -763,7 +763,7 @@ trash_backend_query_info (GVfsBackend *vfs_backend,
g_file_info_set_symbolic_icon (info, icon);
g_object_unref (icon);
- g_file_info_set_attribute_uint32 (info, "trash::item-count", n_items);
+ g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT, n_items);
g_vfs_job_succeeded (G_VFS_JOB (job));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]