summaryrefslogtreecommitdiff
path: root/libnautilus-private
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-11-25 23:21:22 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-11-26 00:41:23 +0100
commit0e5f6710df593de3455fe0e8b1509cdf2fb55bbe (patch)
tree660441718b5d04c586f633d1d04d9066ae51888e /libnautilus-private
parent0a86a7392242ce4b6bd231846bd91cb047b940b8 (diff)
downloadnautilus-0e5f6710df593de3455fe0e8b1509cdf2fb55bbe.tar.gz
files-view: add setting for always show delete permanently
Maintenance is not that much as long as we don't show it in any UI, and was requested by several people. https://bugzilla.gnome.org/show_bug.cgi?id=757375
Diffstat (limited to 'libnautilus-private')
-rw-r--r--libnautilus-private/nautilus-global-preferences.h3
-rw-r--r--libnautilus-private/org.gnome.nautilus.gschema.xml.in5
2 files changed, 8 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index ffe1b7685..af59b3f9f 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -162,6 +162,9 @@ typedef enum
/* Switch to list view while searching */
#define NAUTILUS_PREFERENCES_LIST_VIEW_ON_SEARCH "list-view-on-search"
+/* Context menu options */
+#define NAUTILUS_PREFERENCES_SHOW_DELETE_PERMANENTLY "show-delete-permanently"
+
void nautilus_global_preferences_init (void);
char *nautilus_global_preferences_get_default_folder_viewer_preference_as_iid (void);
diff --git a/libnautilus-private/org.gnome.nautilus.gschema.xml.in b/libnautilus-private/org.gnome.nautilus.gschema.xml.in
index c6cf481f3..113ba59fa 100644
--- a/libnautilus-private/org.gnome.nautilus.gschema.xml.in
+++ b/libnautilus-private/org.gnome.nautilus.gschema.xml.in
@@ -75,6 +75,11 @@
<_summary>Whether to enable recursive search or not</_summary>
<_description>Enables or disables recursive search in Nautilus.</_description>
</key>
+ <key name="show-delete-permanently" type="b">
+ <default>false</default>
+ <_summary>Whether to show a context menu item to delete permanently</_summary>
+ <_description>If set to true Nautilus will show a delete permanently context menu item to bypass the trash.</_description>
+ </key>
<key name="confirm-trash" type="b">
<default>true</default>
<_summary>Whether to ask for confirmation when deleting files, or emptying Trash</_summary>