[libgdata] picasaweb: Fix XML tag names for GDataPicasaWebFile:version



commit 0aa354ee8017e1a13f394c29e95ac5ba5b55363f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Dec 4 12:29:20 2010 +0000

    picasaweb: Fix XML tag names for GDataPicasaWebFile:version
    
    The gphoto:version tag has been deprecated (see
    http://code.google.com/apis/picasaweb/docs/2.0/releasenotes.html), and
    appears to have been replaced by gphoto:imageVersion.

 gdata/services/picasaweb/gdata-picasaweb-file.c |    2 +-
 gdata/tests/picasaweb.c                         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c
index b4623f6..a447519 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.c
@@ -956,7 +956,7 @@ get_xml (GDataParsable *parsable, GString *xml_string)
 		gdata_parser_string_append_escaped (xml_string, "<gphoto:id>", priv->file_id, "</gphoto:id>");
 
 	if (priv->version != NULL)
-		gdata_parser_string_append_escaped (xml_string, "<gphoto:version>", priv->version, "</gphoto:version>");
+		gdata_parser_string_append_escaped (xml_string, "<gphoto:imageVersion>", priv->version, "</gphoto:imageVersion>");
 
 	if (priv->album_id != NULL)
 		gdata_parser_string_append_escaped (xml_string, "<gphoto:albumid>", priv->album_id, "</gphoto:albumid>");
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 5d07ea8..bb4edf2 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -1545,7 +1545,7 @@ test_file_escaping (void)
 				"<summary type='text'>Caption &amp; stuff.</summary>"
 				"<category term='http://schemas.google.com/photos/2007#photo' scheme='http://schemas.google.com/g/2005#kind'/>"
 				"<gphoto:id>&lt;id&gt;</gphoto:id>"
-				"<gphoto:version>&lt;version&gt;</gphoto:version>"
+				"<gphoto:imageVersion>&lt;version&gt;</gphoto:imageVersion>"
 				"<gphoto:albumid>http://foo.com?foo&amp;bar</gphoto:albumid>"
 				"<gphoto:checksum>&lt;checksum&gt;</gphoto:checksum>"
 				"<gphoto:commentingEnabled>true</gphoto:commentingEnabled>"



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