[gnome-documents] documents: Set the typeDescription for local collections



commit 4210141f2e3443018b92c4c3bf443352d41656e4
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 868a123..6e77bf7 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -631,8 +631,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(passwd, cancellable, callback) {


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