[nautilus] file: default to not being able to trash



commit 45a5c5a40e32960e82d208f9885405213cf67ddb
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Oct 8 18:02:45 2015 +0200

    file: default to not being able to trash
    
    We were using as default that we can trash files, and after
    we only set the if it is possible to trash or not if the filesystem
    reports that has the info.
    In most of schemes that the trash is not supported, the filesystem
    actually don't have that info, making can_trash true and providing
    the option on nautilus context menu, which does nothing.
    Default to not being able to trash to avoid this situation.

 libnautilus-private/nautilus-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 7b2f91c..57e2dd5 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -2232,8 +2232,8 @@ update_info_internal (NautilusFile *file,
        can_write = TRUE;
        can_execute = TRUE;
        can_delete = TRUE;
-       can_trash = TRUE;
        can_rename = TRUE;
+       can_trash = FALSE;
        can_mount = FALSE;
        can_unmount = FALSE;
        can_eject = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]