summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsmb.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2015-08-26 17:46:57 +0200
committerOndrej Holy <oholy@redhat.com>2015-09-23 10:17:16 +0200
commit1a4e823966e31f72eedfec536cb150c629e126a7 (patch)
tree3dfb63c282f61d7dc6d96c56da5440e12faa5d80 /daemon/gvfsbackendsmb.c
parente1a3c297aa38c86b19705a03555d322eaa944ff7 (diff)
downloadgvfs-1a4e823966e31f72eedfec536cb150c629e126a7.tar.gz
Mark files as untrashable for main backends
Otherwise nautilus will offer the wrong action in its UI. https://bugzilla.gnome.org/show_bug.cgi?id=753934
Diffstat (limited to 'daemon/gvfsbackendsmb.c')
-rw-r--r--daemon/gvfsbackendsmb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 5e75a731..de1161d6 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1656,6 +1656,8 @@ set_info_from_stat (GVfsBackendSmb *backend,
if (!(statbuf->st_mode & S_IWUSR) && S_ISREG (statbuf->st_mode))
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, FALSE);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE);
+
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_ACCESS, statbuf->st_atime);
#if defined (HAVE_STRUCT_STAT_ST_ATIMENSEC)
g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_ACCESS_USEC, statbuf->st_atimensec / 1000);