[gnome-documents] Fix use of gdata_documents_service_get_primary_authorization_domain



commit f7c0fdd937948810786ee0707df432f5000e217c
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Sep 9 15:47:28 2014 +0200

    Fix use of gdata_documents_service_get_primary_authorization_domain
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735949

 src/documents.js |    4 ++--
 src/sharing.js   |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index dc20ca2..bcdeb91 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -764,7 +764,7 @@ const GoogleDocument = new Lang.Class({
         let service = new GData.DocumentsService({ authorizer: authorizer });
 
         service.query_single_entry_async
-            (service.get_primary_authorization_domain(),
+            (GData.DocumentsService.get_primary_authorization_domain(),
              this.identifier, null,
              GData.DocumentsText,
              cancellable, Lang.bind(this,
@@ -828,7 +828,7 @@ const GoogleDocument = new Lang.Class({
                     return;
                 }
 
-                let authorizationDomain = service.get_primary_authorization_domain();
+                let authorizationDomain = GData.DocumentsService.get_primary_authorization_domain();
                 let inputStream = new GData.DownloadStream({ service: service,
                                                              authorization_domain: authorizationDomain,
                                                              download_uri: uri });
diff --git a/src/sharing.js b/src/sharing.js
index 4d828d9..ba6c90d 100644
--- a/src/sharing.js
+++ b/src/sharing.js
@@ -329,7 +329,7 @@ const SharingDialog = new Lang.Class({
     // Get the id of the selected doc from the sourceManager, give auth info to Google, and start the service
     _createGDataEntry: function() {
         // Query the service for the entry related to the doc
-        this._service.query_single_entry_async(this._service.get_primary_authorization_domain(),
+        this._service.query_single_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
             this._doc.identifier, null, GData.DocumentsText, null, Lang.bind(this,
                 function(object, res) {
                     try {
@@ -465,7 +465,7 @@ const SharingDialog = new Lang.Class({
 
         this._contactEntry.set_sensitive(false);
 
-        this._service.insert_entry_async(this._service.get_primary_authorization_domain(),
+        this._service.insert_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
             aclLink.get_uri(), accessRule, null, Lang.bind(this,
                 function(service, res) {
                     this._contactEntry.set_sensitive(true);
@@ -504,7 +504,7 @@ const SharingDialog = new Lang.Class({
         let accessRule = new GData.AccessRule({ scope_type: scopeType,
                                                 role: role });
 
-        this._service.insert_entry_async(this._service.get_primary_authorization_domain(),
+        this._service.insert_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
             aclLink.get_uri(), accessRule, null, Lang.bind(this,
                 function(service, res) {
                     try {
@@ -561,7 +561,7 @@ const SharingDialog = new Lang.Class({
             let accessRule = entries[idx];
             accessRule.set_role(newRole);
 
-            this._service.update_entry_async(this._service.get_primary_authorization_domain(),
+            this._service.update_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
                 accessRule, null, Lang.bind(this,
                     function(service, res) {
                         try {
@@ -578,7 +578,7 @@ const SharingDialog = new Lang.Class({
             // If we are changing the permission to private, delete the public entry.
             let accessRule = entries[idx];
 
-            this._service.delete_entry_async(this._service.get_primary_authorization_domain(),
+            this._service.delete_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
                 accessRule, null, Lang.bind(this,
                     function(service, res) {
                         try {
@@ -595,7 +595,7 @@ const SharingDialog = new Lang.Class({
             // Workaround if the doc is shared with link: step 1 delete shared with link permission.
             let accessRule = entries[idx];
 
-            this._service.delete_entry_async(this._service.get_primary_authorization_domain(),
+            this._service.delete_entry_async(GData.DocumentsService.get_primary_authorization_domain(),
                 accessRule, null, Lang.bind(this,
                     function(service, res) {
                         try {


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