diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-08-31 00:08:26 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-09-15 18:42:52 +0100 |
commit | eaaaddb30e93e528c1acfd741e2f08c3d3e619d9 (patch) | |
tree | d07d340a20f25097110d703b63d8ec180a2a03e4 | |
parent | 674d85182bf2c855122c21a06b3977a399eeeb11 (diff) | |
download | libgdata-eaaaddb30e93e528c1acfd741e2f08c3d3e619d9.tar.gz |
tasks: Add missing kind_terms to GDataEntry subclasses
This is necessary to ensure the ‘kind’ JSON property appears in
generated output. I’m not sure how the service could have functioned
without these missing, unless Google is validating tasks very relaxedly.
-rw-r--r-- | gdata/services/tasks/gdata-tasks-task.c | 3 | ||||
-rw-r--r-- | gdata/services/tasks/gdata-tasks-tasklist.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdata/services/tasks/gdata-tasks-task.c b/gdata/services/tasks/gdata-tasks-task.c index e2308589..cf4ff0e2 100644 --- a/gdata/services/tasks/gdata-tasks-task.c +++ b/gdata/services/tasks/gdata-tasks-task.c @@ -82,6 +82,7 @@ gdata_tasks_task_class_init (GDataTasksTaskClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); + GDataEntryClass *entry_class = GDATA_ENTRY_CLASS (klass); g_type_class_add_private (klass, sizeof (GDataTasksTaskPrivate)); @@ -93,6 +94,8 @@ gdata_tasks_task_class_init (GDataTasksTaskClass *klass) parsable_class->get_json = get_json; parsable_class->get_content_type = get_content_type; + entry_class->kind_term = "tasks#task"; + /** * GDataTasksTask:parent: * diff --git a/gdata/services/tasks/gdata-tasks-tasklist.c b/gdata/services/tasks/gdata-tasks-tasklist.c index eed7eaad..7c392d65 100644 --- a/gdata/services/tasks/gdata-tasks-tasklist.c +++ b/gdata/services/tasks/gdata-tasks-tasklist.c @@ -48,7 +48,11 @@ static void gdata_tasks_tasklist_class_init (GDataTasksTasklistClass *klass) { GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); + GDataEntryClass *entry_class = GDATA_ENTRY_CLASS (klass); + parsable_class->get_content_type = get_content_type; + + entry_class->kind_term = "tasks#taskList"; } static void |