[nautilus] view: ensure Trash action is visible when setting sensitivity
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: ensure Trash action is visible when setting sensitivity
- Date: Tue, 6 Nov 2012 00:45:48 +0000 (UTC)
commit bbeb58d5760155b1311474190863c0bfd6c8fbc9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 5 19:00:50 2012 -0500
view: ensure Trash action is visible when setting sensitivity
We will set the visibility of the action to FALSE when we go to a
location that supports deletion but not trashing, but we fail to restore
it to TRUE when we go back to a directory that supports trashing.
https://bugzilla.gnome.org/show_bug.cgi?id=687619
src/nautilus-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index e52ca87..27d9adf 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8604,10 +8604,12 @@ real_update_menus (NautilusView *view)
NAUTILUS_ICON_DELETE : NAUTILUS_ICON_TRASH_FULL,
NULL);
/* if the backend supports delete but not trash then don't show trash */
- if (!can_trash_files && can_delete_files)
+ if (!can_trash_files && can_delete_files) {
gtk_action_set_visible (action, FALSE);
- else
+ } else {
+ gtk_action_set_visible (action, TRUE);
gtk_action_set_sensitive (action, can_trash_files);
+ }
action = gtk_action_group_get_action (view->details->dir_action_group,
NAUTILUS_ACTION_DELETE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]