[libgdata] [picasaweb] Suppress gphoto:access on GDataPicasaWebFile



commit 9b08a9ae6140ac7398ae4fd87910f555f95600a0
Author: Richard Schwarting <aquarichy gmail com>
Date:   Thu Oct 8 22:45:49 2009 +0100

    [picasaweb] Suppress gphoto:access on GDataPicasaWebFile
    
    Handle the gphoto:access element for files with a stub, such that a
    warning isn't printed. Proper support will be added when individual file
    permissions are supported by PicasaWeb. Helps: bgo#589858

 gdata/services/picasaweb/gdata-picasaweb-file.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c
index cc50998..aa8d86c 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.c
@@ -906,6 +906,11 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
 			return gdata_parser_error_duplicate_element (node, error);
 		}
 		self->priv->video_status = (gchar*) video_status;
+	} else if (xmlStrcmp (node->name, (xmlChar*) "access") == 0) {
+		/* gphoto:access */
+		/* Visibility is already obtained through the album. When PicasaWeb supports per-file access restrictions,
+		   we'll expose this property. Until then, we'll catch this to suppress the Unhandled XML warning.
+		   See https://bugzilla.gnome.org/show_bug.cgi?id=589858 */
 	} else if (xmlStrcmp (node->name, (xmlChar*) "rotation") == 0) {
 		/* gphoto:rotation */
 		xmlChar *rotation = xmlNodeListGetString (doc, node->children, TRUE);



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