summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-03-02 11:00:35 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-03-02 11:00:35 +0100
commitb740ea3cc015cc721bf09f20584b83fed31595eb (patch)
tree512d1b0efe3325c85b25029c723171260990a058
parent6373cf5c93bc06a6a6370a4d2c876110f54bdcec (diff)
downloadnautilus-b740ea3cc015cc721bf09f20584b83fed31595eb.tar.gz
nautilus-window: don't show notification in desktop
The notification when deleting files is shown also in the desktop, but there's the positioning is difficult and looks odd. Just don't show it there.
-rw-r--r--src/nautilus-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index da948f211..cd789df70 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1562,7 +1562,8 @@ nautilus_window_on_undo_changed (NautilusFileUndoManager *manager,
if (undo_info != NULL &&
state == NAUTILUS_FILE_UNDO_MANAGER_STATE_UNDO &&
- nautilus_file_undo_info_get_op_type (undo_info) == NAUTILUS_FILE_UNDO_OP_MOVE_TO_TRASH) {
+ nautilus_file_undo_info_get_op_type (undo_info) == NAUTILUS_FILE_UNDO_OP_MOVE_TO_TRASH &&
+ !NAUTILUS_IS_DESKTOP_WINDOW (window)) {
files = nautilus_file_undo_info_trash_get_files (NAUTILUS_FILE_UNDO_INFO_TRASH (undo_info));
/* Don't pop up a notification if user canceled the operation or the focus