diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-08-31 00:07:16 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-09-15 18:42:52 +0100 |
commit | 7b34e0a1fe2bf717129b25ea418bcb5f590ecc36 (patch) | |
tree | 11f5262bc5b0ba33f6e79c6d41e2b6677b430c40 | |
parent | c83a01a0eb222999574e2344c702e1a36dc1cb5a (diff) | |
download | libgdata-7b34e0a1fe2bf717129b25ea418bcb5f590ecc36.tar.gz |
tasks: Invalid GDataTasksQuery:etag on property changes
Since the ETag no longer represents the query.
-rw-r--r-- | gdata/services/tasks/gdata-tasks-query.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdata/services/tasks/gdata-tasks-query.c b/gdata/services/tasks/gdata-tasks-query.c index bbe33d46..8cb20faa 100644 --- a/gdata/services/tasks/gdata-tasks-query.c +++ b/gdata/services/tasks/gdata-tasks-query.c @@ -406,6 +406,9 @@ gdata_tasks_query_set_completed_max (GDataTasksQuery *self, gint64 completed_max self->priv->completed_max = completed_max; g_object_notify (G_OBJECT (self), "completed-max"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } /** @@ -445,6 +448,9 @@ gdata_tasks_query_set_completed_min (GDataTasksQuery *self, gint64 completed_min self->priv->completed_min = completed_min; g_object_notify (G_OBJECT (self), "completed-min"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } /** @@ -484,6 +490,9 @@ gdata_tasks_query_set_due_max (GDataTasksQuery *self, gint64 due_max) self->priv->due_max = due_max; g_object_notify (G_OBJECT (self), "due-max"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } @@ -524,6 +533,9 @@ gdata_tasks_query_set_due_min (GDataTasksQuery *self, gint64 due_min) self->priv->due_min = due_min; g_object_notify (G_OBJECT (self), "due-min"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } /** @@ -559,6 +571,9 @@ gdata_tasks_query_set_show_completed (GDataTasksQuery *self, gboolean show_compl self->priv->show_completed = show_completed; g_object_notify (G_OBJECT (self), "show-completed"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } /** @@ -594,6 +609,9 @@ gdata_tasks_query_set_show_deleted (GDataTasksQuery *self, gboolean show_deleted self->priv->show_deleted = show_deleted; g_object_notify (G_OBJECT (self), "show-deleted"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } /** @@ -629,4 +647,7 @@ gdata_tasks_query_set_show_hidden (GDataTasksQuery *self, gboolean show_hidden) self->priv->show_hidden = show_hidden; g_object_notify (G_OBJECT (self), "show-hidden"); + + /* Our current ETag will no longer be relevant. */ + gdata_query_set_etag (GDATA_QUERY (self), NULL); } |