diff options
author | Alexander Larsson <alexl@redhat.com> | 2004-11-29 15:28:14 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2004-11-29 15:28:14 +0000 |
commit | 935586e568e866a070cdaab2bde2a687096d21a1 (patch) | |
tree | 8124e3669cf78a60a2c48fbc19ce9014205432a9 /libnautilus-private/nautilus-file-dnd.c | |
parent | 8c8707b3e15c5c22fed6860e69193346f09d879d (diff) | |
download | nautilus-935586e568e866a070cdaab2bde2a687096d21a1.tar.gz |
Handle drags to desktop items.
2004-11-29 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-dnd.c:
(nautilus_drag_can_accept_item):
Handle drags to desktop items.
Diffstat (limited to 'libnautilus-private/nautilus-file-dnd.c')
-rw-r--r-- | libnautilus-private/nautilus-file-dnd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-dnd.c b/libnautilus-private/nautilus-file-dnd.c index a235519c0..fd55a3d5c 100644 --- a/libnautilus-private/nautilus-file-dnd.c +++ b/libnautilus-private/nautilus-file-dnd.c @@ -25,6 +25,7 @@ #include <config.h> #include "nautilus-file-dnd.h" +#include "nautilus-desktop-icon-file.h" #include "nautilus-dnd.h" #include <eel/eel-glib-extensions.h> @@ -43,7 +44,11 @@ nautilus_drag_can_accept_item (NautilusFile *drop_target_item, /* target is a directory, accept anything */ return TRUE; } - + + if (NAUTILUS_IS_DESKTOP_ICON_FILE (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 |