[nautilus] file-operations: show needed space as a secondary message
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: show needed space as a secondary message
- Date: Tue, 18 Oct 2011 15:28:46 +0000 (UTC)
commit a598148fde3f08ad69115b96c5a9a821ac16983c
Author: Timothy Arceri <t_fridey yahoo com au>
Date: Tue Oct 18 10:39:19 2011 -0400
file-operations: show needed space as a secondary message
When there's not enough space on the disk, show how much additional
space is needed for the operation to complete, instead of a more obscure
error message.
https://bugzilla.gnome.org/show_bug.cgi?id=542960
libnautilus-private/nautilus-file-operations.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index ba64b3d..7db7fa7 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -2678,6 +2678,7 @@ verify_destination (CommonJob *job,
GFileInfo *info, *fsinfo;
GError *error;
guint64 free_size;
+ guint64 size_difference;
char *primary, *secondary, *details;
int response;
GFileType file_type;
@@ -2777,10 +2778,11 @@ verify_destination (CommonJob *job,
G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
if (free_size < required_size) {
+ size_difference = required_size - free_size;
primary = f (_("Error while copying to \"%B\"."), dest);
- secondary = f(_("There is not enough space on the destination. Try to remove files to make space."));
+ secondary = f (_("There is not enough space on the destination. Try to remove files to make space."));
- details = f (_("There is %S available, but %S is required."), free_size, required_size);
+ details = f (_("%S more space is required to copy to the destination."), size_difference);
response = run_warning (job,
primary,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]