[nautilus/gnome-3-6] view: ensure Trash action is visible when setting sensitivity
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-6] view: ensure Trash action is visible when setting sensitivity
- Date: Tue, 6 Nov 2012 00:48:44 +0000 (UTC)
commit 2e9f73008fab58c633df26feee71b2bfb486493f
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 f51d916..f01442a 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8662,10 +8662,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]