[nautilus] nautilus-window: don't show notification in desktop
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-window: don't show notification in desktop
- Date: Mon, 2 Mar 2015 10:01:38 +0000 (UTC)
commit b740ea3cc015cc721bf09f20584b83fed31595eb
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 2 11:00:35 2015 +0100
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.
src/nautilus-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index da948f2..cd789df 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]