diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-11 14:28:43 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-11 14:28:43 +0000 |
commit | c032d54671911a52186f4e16f74694783f4f5b48 (patch) | |
tree | 01be87ab4ba335ab418a27bdf2c6a41c295fd06d /daemon/gvfsbackendtrash.c | |
parent | e7aa3d75636fb72b4671dfbdff058841c1dd86ce (diff) | |
download | gvfs-c032d54671911a52186f4e16f74694783f4f5b48.tar.gz |
Set the correct copy name. Set description.
2008-02-11 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsbackendtrash.c:
Set the correct copy name.
Set description.
svn path=/trunk/; revision=1257
Diffstat (limited to 'daemon/gvfsbackendtrash.c')
-rw-r--r-- | daemon/gvfsbackendtrash.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/daemon/gvfsbackendtrash.c b/daemon/gvfsbackendtrash.c index 2f3b9ea3..8c6913e8 100644 --- a/daemon/gvfsbackendtrash.c +++ b/daemon/gvfsbackendtrash.c @@ -905,7 +905,7 @@ add_extra_trash_info (GFileInfo *file_info, char *orig_path, *orig_path_key, *orig_path_unescaped, *date; GKeyFile *keyfile; char *display_name; - + char *desc; /* Override all writability */ g_file_info_set_attribute_boolean (file_info, @@ -950,8 +950,18 @@ add_extra_trash_info (GFileInfo *file_info, char *p = display_name; display_name = g_strconcat (display_name, _(" (invalid encoding)"), NULL); g_free (p); + + g_file_info_set_attribute_string (file_info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, NULL); } + else + g_file_info_set_attribute_string (file_info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, display_name); + g_file_info_set_display_name (file_info, display_name); + + desc = g_strdup_printf (_("%s (in trash)"), display_name); + g_file_info_set_attribute_string (file_info, G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION, desc); + g_free (desc); + g_free (display_name); |