[nautilus] file: Don't call a file type "Unknown" if it isn't
- From: António Jorge Pinto Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: Don't call a file type "Unknown" if it isn't
- Date: Thu, 2 Nov 2017 15:17:27 +0000 (UTC)
commit e8153180effb2fd0f67a69e16e4985fc6e333f9c
Author: António Fernandes <AntonioJPFernandes gmail com>
Date: Thu Aug 24 11:21:45 2017 +0100
file: Don't call a file type "Unknown" if it isn't
If file type is known but doesn't match any basic type, then it's not unknown.
To fix, call it "Other".
Note that nautilus_file_get_string_attribute_with_default uses "Unknown" as
the default pretty value for NULL.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=758692
src/nautilus-file.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 536f835..a37c655 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -7688,7 +7688,8 @@ get_basic_type_for_mime_type (const char *mime_type)
if (basic_type == NULL)
{
- basic_type = g_strdup (_("Unknown"));
+ /* Refers to a file type which is known but not one of the basic types */
+ basic_type = g_strdup (_("Other"));
}
g_free (icon_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]