[libgdata] core: Add PicasaWeb support to GDataGoaAuthorizer



commit 2e9da05c8ec6b06556a64f5ea7d45246e5963108
Author: Saurav Agarwalla <saurav agarwalla92 gmail com>
Date:   Wed Jun 18 11:35:00 2014 +0000

    core: Add PicasaWeb support to GDataGoaAuthorizer
    
    GOA has supported photos for a long time. Grab PicasaWeb
    authentication if GOA has already got a token supporting it.
    
    This bumps the GOA dependency to 3.8.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731269

 README                       |    2 +-
 configure.ac                 |    2 +-
 gdata/gdata-goa-authorizer.c |    5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/README b/README
index 98ef7b8..8b55122 100644
--- a/README
+++ b/README
@@ -22,7 +22,7 @@ Dependencies
 
 If compiling with --enable-gnome (for GNOME support):
  • gcr-base-3
- • goa-1.0 ≥ 3.2
+ • goa-1.0 ≥ 3.8
 
 If compiling the demos:
  • gtk+-3.0 ≥ 2.91.2
diff --git a/configure.ac b/configure.ac
index ec52324..e02f752 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,7 @@ GIO_REQS=2.17.3
 SOUP_REQS=2.42.0
 OAUTH_REQS=0.9.4
 GTK_REQS=2.91.2
-GOA_REQS=3.2
+GOA_REQS=3.8
 JSON_GLIB_REQS=0.15
 
 # Before making a release, the GDATA_LT_VERSION string should be modified. The string is of the form c:r:a. 
Follow these instructions sequentially:
diff --git a/gdata/gdata-goa-authorizer.c b/gdata/gdata-goa-authorizer.c
index d5ccc0b..fb0dfa0 100644
--- a/gdata/gdata-goa-authorizer.c
+++ b/gdata/gdata-goa-authorizer.c
@@ -71,6 +71,7 @@
 #include "services/calendar/gdata-calendar-service.h"
 #include "services/contacts/gdata-contacts-service.h"
 #include "services/documents/gdata-documents-service.h"
+#include "services/picasaweb/gdata-picasaweb-service.h"
 
 #define HMAC_SHA1_LEN 20 /* bytes, raw */
 
@@ -385,6 +386,10 @@ gdata_goa_authorizer_set_goa_object (GDataGoaAuthorizer *self, GoaObject *goa_ob
        if (goa_object_peek_documents (goa_object) != NULL) {
                add_authorization_domains (self, GDATA_TYPE_DOCUMENTS_SERVICE);
        }
+       
+       if (goa_object_peek_photos (goa_object) != NULL) {
+               add_authorization_domains (self, GDATA_TYPE_PICASAWEB_SERVICE);
+       }
 }
 
 static void


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