[nautilus] Handle G_IO_ERROR_FILENAME_TOO_LONG errors nicely when renaming files



commit 83aeec725d0d3829a54cd700329864a2cab7a21b
Author: Marcus Carlson <marcus mejlamej nu>
Date:   Sun Oct 11 23:25:30 2009 +0200

    Handle G_IO_ERROR_FILENAME_TOO_LONG errors nicely when renaming files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=548844

 src/file-manager/fm-error-reporting.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/file-manager/fm-error-reporting.c b/src/file-manager/fm-error-reporting.c
index 69db967..6a4cf2f 100644
--- a/src/file-manager/fm-error-reporting.c
+++ b/src/file-manager/fm-error-reporting.c
@@ -132,6 +132,11 @@ fm_report_error_renaming_file (NautilusFile *file,
 							   new_name_truncated);
 			}
 			break;
+                case G_IO_ERROR_FILENAME_TOO_LONG:
+                        message = g_strdup_printf (_("The name \"%s\" is too long. "
+                                                     "Please use a different name."),
+                                                     new_name_truncated);
+                        break;
 		default:
 			break;
 		}



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