[nautilus] Adds a "Copy Anyway" option when copying files and disk space is not enough



commit 143fd025cc20423cc9eb8b3a255b4a102a58efce
Author: Marcus Carlson <marcus mejlamej nu>
Date:   Sat Oct 3 21:02:52 2009 +0200

    Adds a "Copy Anyway" option when copying files and disk space is not enough
    
    https://bugzilla.gnome.org/show_bug.cgi?id=324361

 libnautilus-private/nautilus-file-operations.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 29d5e12..f9ee6e0 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -190,6 +190,7 @@ typedef struct {
 #define REPLACE_ALL _("Replace _All")
 #define MERGE _("_Merge")
 #define MERGE_ALL _("Merge _All")
+#define COPY_FORCE _("Copy _Anyway")
 
 static void
 mark_desktop_file_trusted (CommonJob *common,
@@ -2765,13 +2766,17 @@ verify_destination (CommonJob *job,
 						secondary,
 						details,
 						FALSE,
-						GTK_STOCK_CANCEL, RETRY,
+						GTK_STOCK_CANCEL,
+						COPY_FORCE,
+						RETRY,
 						NULL);
 			
 			if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
 				abort_job (job);
-			} else if (response == 1) {
+			} else if (response == 2) {
 				goto retry;
+			} else if (response == 1) {
+				/* We are forced to copy - just fall through ... */
 			} else {
 				g_assert_not_reached ();
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]