summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file-dnd.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-03-07 14:08:29 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2012-03-07 14:08:29 -0500
commit0ffe4ea4e0df9e5a186b3096bf1712011230a75b (patch)
tree1ec097f8a9b7ee2e6ccaf0f3d6e9b1f16cc1f7c0 /libnautilus-private/nautilus-file-dnd.c
parentb241fd28913e87fe01419e4922259949a11c973f (diff)
downloadnautilus-0ffe4ea4e0df9e5a186b3096bf1712011230a75b.tar.gz
file-dnd: only accept launchers as DnD targets
Not random desktop files.
Diffstat (limited to 'libnautilus-private/nautilus-file-dnd.c')
-rw-r--r--libnautilus-private/nautilus-file-dnd.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libnautilus-private/nautilus-file-dnd.c b/libnautilus-private/nautilus-file-dnd.c
index 617660455..310ad9d2b 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;
}