[libgdata] core: Set description in JSON



commit 320bd70b5d285c9f3a336de94e1e771dffbfaea9
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Apr 27 18:23:57 2015 +0200

    core: Set description in JSON
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684920

 gdata/gdata-entry.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c
index 52a4694..7064519 100644
--- a/gdata/gdata-entry.c
+++ b/gdata/gdata-entry.c
@@ -652,6 +652,11 @@ get_json (GDataParsable *parsable, JsonBuilder *builder)
                json_builder_add_string_value (builder, priv->id);
        }
 
+       if (priv->summary != NULL) {
+               json_builder_set_member_name (builder, "description");
+               json_builder_add_string_value (builder, priv->summary);
+       }
+
        if (priv->updated != -1) {
                gchar *updated = gdata_parser_int64_to_iso8601 (priv->updated);
                json_builder_set_member_name (builder, "updated");


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