diff options
author | Debarshi Ray <debarshir@gnome.org> | 2015-04-27 18:23:57 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2015-04-28 11:36:48 +0200 |
commit | 320bd70b5d285c9f3a336de94e1e771dffbfaea9 (patch) | |
tree | c0c80295028cdb57b007311812e2cdf39587ad88 /gdata/gdata-entry.c | |
parent | 6e0b3d1f14e0c290670fd595ace3bf48dd26e714 (diff) | |
download | libgdata-320bd70b5d285c9f3a336de94e1e771dffbfaea9.tar.gz |
core: Set description in JSON
https://bugzilla.gnome.org/show_bug.cgi?id=684920
Diffstat (limited to 'gdata/gdata-entry.c')
-rw-r--r-- | 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 52a4694a..7064519a 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"); |