[gnome-documents/wip/ui-changes] documents: rename loadPreview() to load()



commit 249dc0b179572bd908bea1d1f3ed1e6a3c1c3c39
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Feb 26 15:08:38 2012 -0500

    documents: rename loadPreview() to load()
    
    Since we're loading the actual document contents, not just its preview.

 src/documents.js |    4 ++--
 src/embed.js     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index dd7f17a..6f27a18 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -630,7 +630,7 @@ LocalDocument.prototype = {
             this.typeDescription = Gio.content_type_get_description(this.mimeType);
     },
 
-    loadPreview: function(cancellable, callback) {
+    load: function(cancellable, callback) {
         Gd.pdf_loader_load_uri_async(this.uri, cancellable, Lang.bind(this,
             function(source, res) {
                 try {
@@ -711,7 +711,7 @@ GoogleDocument.prototype = {
                  }));
     },
 
-    loadPreview: function(cancellable, callback) {
+    load: function(cancellable, callback) {
         this._createGDataEntry(cancellable, Lang.bind(this,
             function(entry, service, exception) {
                 if (exception) {
diff --git a/src/embed.js b/src/embed.js
index 4397b09..3a86b16 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -231,7 +231,7 @@ ViewEmbed.prototype  = {
         this._spinnerBox.moveInDelayed(_PDF_LOADER_TIMEOUT);
 
         this._loaderCancellable = new Gio.Cancellable();
-        doc.loadPreview(this._loaderCancellable, Lang.bind(this, this._onDocumentLoaded));
+        doc.load(this._loaderCancellable, Lang.bind(this, this._onDocumentLoaded));
     },
 
     _onDocumentLoaded: function(doc, evDoc, error) {



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