[nautilus] Show different menu for removing a recent item



commit f10db6743225ef14f1b4b8f6707cbb452f619da1
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Dec 5 08:57:31 2012 -0500

    Show different menu for removing a recent item
    
    Removing a file from the recent view does not move it to the trash.

 src/nautilus-view.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index f5354de..87e452b 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8616,9 +8616,18 @@ real_update_menus (NautilusView *view)
 	   show the delete option. or if the user set this  pref */
 	gtk_action_set_visible (action, (!can_trash_files && can_delete_files) || show_separate_delete_command);
 
+	if (selection_contains_recent) {
+		label = _("Remo_ve from Recent");
+		tip = _("Remove each selected item from the recenly used list");
+	} else {
+		label = _("_Delete");
+		tip = _("Delete each selected item, without moving to the Trash");
+	}
+
 	if ((!can_trash_files && can_delete_files) || show_separate_delete_command) {
 		g_object_set (action,
-			      "label", _("_Delete"),
+			      "label", label,
+			      "tooltip", tip,
 			      "icon-name", NAUTILUS_ICON_DELETE,
 			      NULL);
 	}



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