• Pavel Cisler's avatar
    reviewed by: Gene Ragan <gzr@eazel.com> · 8e014624
    Pavel Cisler authored
    2001-02-01  Pavel Cisler  <pavel@eazel.com>
    	reviewed by: Gene Ragan <gzr@eazel.com>
    	Fix 6152 (Dragging a file to the trash will bring up a replace
    	Fix 5387 (Dragging a file within Trash gives "already exists"
    	* libnautilus-extensions/nautilus-drag.c:
    	* libnautilus-extensions/nautilus-drag.h:
    	(nautilus_drag_items_local), (nautilus_drag_items_in_trash):
    	Add more convenience calls for Trash handling.
    	* libnautilus-extensions/nautilus-file-utilities.h:
    	* libnautilus-extensions/nautilus-file-utilities.c:
    	New convenience call for Trash handling.
    	* libnautilus-extensions/nautilus-file.c:
    	Use the new nautilus_uri_is_in_trash call.
    	* libnautilus-extensions/nautilus-file-operations.c:
    	Handle the case where a file is dragged into a Trash window or
    	onto a Trash icon as if the "Move to Trash" command was issued -
    	if there is a name conflict with a pre-existing file in the Trash,
    	use a new unique name for the new file.
    	* libnautilus-extensions/nautilus-icon-dnd.c:
    	Handle files in the Trash properly - doing a parent match with
    	the container URI fails for these, special case Trash handling.
nautilus-file-operations.c 72.4 KB