Commit 669cb660 authored by Michael Fleming's avatar Michael Fleming

reviewed by: <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file-operations.c:
	(handle_transfer_vfs_error):

	Fixed error message for the case where a file was moved to an unwritable
	target where permissions were not known in advance (eg, Eazel vault).

	Previously: "The file or its directory cannot be changed"
	Now: "You do not have permissions to write to this folder"
parent 134b259a
2001-01-15 Michael K. Fleming <mfleming@eazel.com>
reviewed by: <pavel@eazel.com>
* libnautilus-extensions/nautilus-file-operations.c:
(handle_transfer_vfs_error):
Fixed error message for the case where a file was moved to an unwritable
target where permissions were not known in advance (eg, Eazel vault).
Previously: "The file or its directory cannot be changed"
Now: "You do not have permissions to write to this folder"
2001-01-15 Michael Engber <engber@eazel.com>
reviewed by: Gene Z. Ragan
......
......@@ -805,6 +805,11 @@ handle_transfer_vfs_error (const GnomeVFSXferProgressInfo *progress_info,
&& progress_info->phase != GNOME_VFS_XFER_CHECKING_DESTINATION) {
error_location = ERROR_LOCATION_SOURCE_PARENT;
error_kind = ERROR_READ_ONLY;
} else if (progress_info->vfs_status == GNOME_VFS_ERROR_ACCESS_DENIED
&& transfer_info->kind == TRANSFER_MOVE
&& progress_info->phase == GNOME_VFS_XFER_PHASE_OPENTARGET) {
error_location = ERROR_LOCATION_TARGET;
error_kind = ERROR_NOT_ENOUGH_PERMISSIONS;
} else if (progress_info->vfs_status == GNOME_VFS_ERROR_ACCESS_DENIED
&& (transfer_info->kind == TRANSFER_MOVE
|| transfer_info->kind == TRANSFER_MOVE_TO_TRASH)
......
......@@ -805,6 +805,11 @@ handle_transfer_vfs_error (const GnomeVFSXferProgressInfo *progress_info,
&& progress_info->phase != GNOME_VFS_XFER_CHECKING_DESTINATION) {
error_location = ERROR_LOCATION_SOURCE_PARENT;
error_kind = ERROR_READ_ONLY;
} else if (progress_info->vfs_status == GNOME_VFS_ERROR_ACCESS_DENIED
&& transfer_info->kind == TRANSFER_MOVE
&& progress_info->phase == GNOME_VFS_XFER_PHASE_OPENTARGET) {
error_location = ERROR_LOCATION_TARGET;
error_kind = ERROR_NOT_ENOUGH_PERMISSIONS;
} else if (progress_info->vfs_status == GNOME_VFS_ERROR_ACCESS_DENIED
&& (transfer_info->kind == TRANSFER_MOVE
|| transfer_info->kind == TRANSFER_MOVE_TO_TRASH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment