[gvfs/wip/rishi/goa: 1/4] dav: Mark files as untrashable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/rishi/goa: 1/4] dav: Mark files as untrashable
- Date: Fri, 21 Aug 2015 17:58:34 +0000 (UTC)
commit 6f6020adc1190f08c849cc33f319ab7e5f89cfb9
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 21 16:54:46 2015 +0200
dav: Mark files as untrashable
Otherwise nautilus will offer the wrong action in its UI.
https://bugzilla.gnome.org/show_bug.cgi?id=753934
daemon/gvfsbackenddav.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index 27166a2..37d55bc 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -1022,6 +1022,8 @@ ms_response_to_file_info (MsResponse *response,
if (basename && basename[0] == '.')
g_file_info_set_is_hidden (info, TRUE);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE);
+
file_type = G_FILE_TYPE_REGULAR;
mime_type = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]