diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2000-08-23 01:56:53 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2000-08-23 01:56:53 +0000 |
commit | 3184fe2b0a38ba2835c71b10423af7c24f6f0106 (patch) | |
tree | 0b825f3e657c045bedb85b1ef55bf4cd57523186 /libnautilus-private/nautilus-link.c | |
parent | 136ddd80dd9888cc2e48818d6da5431bc4ea95f2 (diff) | |
download | nautilus-3184fe2b0a38ba2835c71b10423af7c24f6f0106.tar.gz |
Work in progress to support dragging onto NautilusLink files. Dragging on
2000-08-22 Gene Z. Ragan <gzr@eazel.com>
Work in progress to support dragging onto
NautilusLink files. Dragging on the trash
still does not work.
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-container.h:
(nautilus_icon_container_initialize_class),
(nautilus_icon_container_get_icon_uri),
(nautilus_icon_container_get_icon_drop_target_uri):
New signal to return the target URI of a drag target.
This was done to support dragging onto NautilyusLink files.
* libnautilus-extensions/nautilus-drag.c:
(nautilus_drag_can_accept_item):
Add call to nautilus_icon_container_get_icon_drop_target_uri
and remove call to nautilus_icon_container_get_icon_uri
* libnautilus-extensions/nautilus-icon-dnd.c:
* libnautilus-extensions/nautilus-icon-private.h:
(nautilus_icon_container_find_drop_target):
Some code cleanup to fix a leak.
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-link.h:
(nautilus_link_can_accept_drag):
New function that currently return TRUE for all links.
* src/file-manager/fm-icon-view.c: (get_icon_uri_callback),
(get_icon_drop_target_uri_callback), (create_icon_container):
Connect to new signal and add implementation.
Diffstat (limited to 'libnautilus-private/nautilus-link.c')
-rw-r--r-- | libnautilus-private/nautilus-link.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-link.c b/libnautilus-private/nautilus-link.c index c71483a6f..c6315c121 100644 --- a/libnautilus-private/nautilus-link.c +++ b/libnautilus-private/nautilus-link.c @@ -482,3 +482,9 @@ nautilus_link_is_trash_link (const char *path) return retval; } +/* All links can accept drags currently */ +gboolean +nautilus_link_can_accept_drag (const char *path) +{ + return TRUE; +} |