gvfs r1229 - in trunk: . daemon
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1229 - in trunk: . daemon
- Date: Tue, 5 Feb 2008 10:40:37 +0000 (GMT)
Author: alexl
Date: Tue Feb 5 10:40:36 2008
New Revision: 1229
URL: http://svn.gnome.org/viewvc/gvfs?rev=1229&view=rev
Log:
2008-02-05 Alexander Larsson <alexl redhat com>
* daemon/gvfsbackendtrash.c:
(do_query_info):
Correctly set the name for toplevel items.
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendtrash.c
Modified: trunk/daemon/gvfsbackendtrash.c
==============================================================================
--- trunk/daemon/gvfsbackendtrash.c (original)
+++ trunk/daemon/gvfsbackendtrash.c Tue Feb 5 10:40:36 2008
@@ -1162,6 +1162,7 @@
{
/* The trash:/// root */
g_file_info_set_file_type (info, G_FILE_TYPE_DIRECTORY);
+ g_file_info_set_name (info, "/");
g_file_info_set_display_name (info, _("Trashcan"));
g_file_info_set_content_type (info, "inode/directory");
@@ -1201,6 +1202,7 @@
char *path;
GError *error;
char *info_dir;
+ char *basename;
path = g_build_filename (trashdir, "files", trashfile, relative_path, NULL);
file = g_file_new_for_path (path);
@@ -1218,6 +1220,10 @@
{
g_file_info_copy_into (local_info, info);
+ basename = g_path_get_basename (filename);
+ g_file_info_set_name (info, basename);
+ g_free (basename);
+
info_dir = g_build_filename (trashdir, "info", NULL);
add_extra_trash_info (info,
topdir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]