[nautilus] file-dnd: only accept launchers as DnD targets
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-dnd: only accept launchers as DnD targets
- Date: Thu, 8 Mar 2012 00:31:04 +0000 (UTC)
commit 0ffe4ea4e0df9e5a186b3096bf1712011230a75b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Mar 7 14:08:29 2012 -0500
file-dnd: only accept launchers as DnD targets
Not random desktop files.
libnautilus-private/nautilus-file-dnd.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-dnd.c b/libnautilus-private/nautilus-file-dnd.c
index 6176604..310ad9d 100644
--- a/libnautilus-private/nautilus-file-dnd.c
+++ b/libnautilus-private/nautilus-file-dnd.c
@@ -51,13 +51,8 @@ nautilus_drag_can_accept_files (NautilusFile *drop_target_item)
return TRUE;
}
- /* All Nautilus links are assumed to be links to directories.
- * Therefore, they all can accept drags, like all other
- * directories to. As with other directories, there can be
- * errors when the actual copy is attempted due to
- * permissions.
- */
- if (nautilus_file_is_nautilus_link (drop_target_item)) {
+ /* Launchers are an acceptable drop target */
+ if (nautilus_file_is_launcher (drop_target_item)) {
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]