[libgdata] [documents] Fix GDataDocumentsEntry:is-deleted
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgdata] [documents] Fix GDataDocumentsEntry:is-deleted
- Date: Sun, 2 Aug 2009 18:40:19 +0000 (UTC)
commit abaa3f0c0eca903206bb81fa28edf4c9213ffb1f
Author: Thibault Saunier <saunierthibault gmail com>
Date: Sun Aug 2 19:39:06 2009 +0100
[documents] Fix GDataDocumentsEntry:is-deleted
Brown paper bag commit of a fix to the is-deleted property of
GDataDocumentsEntry, which apparently doesn't have any attributes.
Closes: bgo#590345
gdata/services/documents/gdata-documents-entry.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/gdata/services/documents/gdata-documents-entry.c b/gdata/services/documents/gdata-documents-entry.c
index 506b85c..aabb2b2 100644
--- a/gdata/services/documents/gdata-documents-entry.c
+++ b/gdata/services/documents/gdata-documents-entry.c
@@ -228,17 +228,9 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
}
xmlFree (writers_can_invite);
} else if (xmlStrcmp (node->name, (xmlChar*) "deleted") == 0) {
- xmlChar *deleted = xmlGetProp (node, (xmlChar*) "value");
- if (xmlStrcmp (deleted, (xmlChar*) "true") == 0) {
- self->priv->is_deleted = TRUE;
- } else if (xmlStrcmp (deleted, (xmlChar*) "false") == 0) {
- self->priv->is_deleted = FALSE;
- } else {
- gdata_parser_error_unknown_property_value (node, "value", (gchar*) deleted, error);
- xmlFree (deleted);
- return FALSE;
- }
- xmlFree (deleted);
+ /* <gd:deleted> */
+ /* Note that it doesn't have any parameters, so we unconditionally set priv->is_deleted to TRUE */
+ self->priv->is_deleted = TRUE;
} else if (xmlStrcmp (node->name, (xmlChar*) "resourceId") == 0) {
gchar **document_id_parts;
xmlChar *resource_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]