[libgdata] picasaweb: Fix XML tag names for GDataPicasaWebFile:version
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] picasaweb: Fix XML tag names for GDataPicasaWebFile:version
- Date: Sat, 4 Dec 2010 12:30:46 +0000 (UTC)
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 & stuff.</summary>"
"<category term='http://schemas.google.com/photos/2007#photo' scheme='http://schemas.google.com/g/2005#kind'/>"
"<gphoto:id><id></gphoto:id>"
- "<gphoto:version><version></gphoto:version>"
+ "<gphoto:imageVersion><version></gphoto:imageVersion>"
"<gphoto:albumid>http://foo.com?foo&bar</gphoto:albumid>"
"<gphoto:checksum><checksum></gphoto:checksum>"
"<gphoto:commentingEnabled>true</gphoto:commentingEnabled>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]