[gnome-documents/gnome-3-8] documents: Set the typeDescription for local collections
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] documents: Set the typeDescription for local collections
- Date: Sun, 11 Aug 2013 06:16:05 +0000 (UTC)
commit 45e12928fd97e0f84ef792f9dd9e9467bc1343e2
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 9 17:26:34 2013 +0200
documents: Set the typeDescription for local collections
https://bugzilla.gnome.org/show_bug.cgi?id=705725
src/documents.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index ed5fa92..5220a15 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -617,8 +617,14 @@ const LocalDocument = new Lang.Class({
},
updateTypeDescription: function() {
- if (this.mimeType)
- this.typeDescription = Gio.content_type_get_description(this.mimeType);
+ let description = '';
+
+ if (this.collection)
+ description = _("Collection");
+ else if (this.mimeType)
+ description = Gio.content_type_get_description(this.mimeType);
+
+ this.typeDescription = description;
},
load: function(cancellable, callback) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]