Mercurial > hg > forks > geeqie
diff src/options.c @ 2860:b20a96b979a3
Fix #437: Delete to standard Trash directory
https://github.com/BestImageViewer/geeqie/issues/437
The method of file deletion is changed. The Preferences/Behaviour option
"Safe delete" is removed.
The user has the option to choose Geeqie-defined trash bin or
system-defined trash bin as the normal mode - set in
Preferences/Behaviour.
Menus have two entries: Move to trash and Permanent delete.
The Delete key moves to trash; shift-Delete deletes permanently.
Both Move to trash and Permanent delete have user-selectable
confirmation, set in Preferences/Behaviour.
This means the function of the Delete key is changed from Permanent
delete to Move to trash, which is a fail-safe change.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Sat, 03 Nov 2018 17:53:31 +0000 |
parents | 1656d2341e2f |
children | 87242753ed2c |
line wrap: on
line diff
--- a/src/options.c Thu Nov 01 13:59:03 2018 +0000 +++ b/src/options.c Sat Nov 03 17:53:31 2018 +0000 @@ -65,9 +65,11 @@ options->show_window_ids = FALSE; options->file_ops.confirm_delete = TRUE; + options->file_ops.confirm_move_to_trash = TRUE; options->file_ops.enable_delete_key = TRUE; + options->file_ops.use_system_trash = TRUE; options->file_ops.enable_in_place_rename = TRUE; - options->file_ops.safe_delete_enable = FALSE; + options->file_ops.safe_delete_enable = TRUE; options->file_ops.safe_delete_folder_maxsize = 128; options->file_ops.safe_delete_path = NULL;