[gnome-documents] documents: move document.identifier to be valid for local docs as well



commit ded2c3e4e0bb2bf305a8bcc407d6ed4372c546cf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Nov 14 16:08:15 2011 -0500

    documents: move document.identifier to be valid for local docs as well
    
    We want to use the identifier to identify collections, so make this
    available for local documents as well as remote.

 src/documents.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 1b9b117..be7501c 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -300,6 +300,7 @@ DocCommon.prototype = {
     populateFromCursor: function(cursor) {
         this.uri = cursor.get_string(Query.QueryColumns.URI)[0];
         this.id = cursor.get_string(Query.QueryColumns.URN)[0];
+        this.identifier = cursor.get_string(Query.QueryColumns.IDENTIFIER)[0];
         this.author = cursor.get_string(Query.QueryColumns.AUTHOR)[0];
         this.resourceUrn = cursor.get_string(Query.QueryColumns.RESOURCE_URN)[0];
         this.favorite = cursor.get_boolean(Query.QueryColumns.FAVORITE);
@@ -629,7 +630,6 @@ GoogleDocument.prototype = {
         DocCommon.prototype._init.call(this, cursor);
 
         // overridden
-        this.identifier = cursor.get_string(Query.QueryColumns.IDENTIFIER)[0];
         this.defaultAppName = _("Google Docs");
         this.sourceName = _("Google");
     },



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