[libgdata] contacts: Fix pagination for contact queries
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] contacts: Fix pagination for contact queries
- Date: Fri, 3 Nov 2017 18:29:13 +0000 (UTC)
commit 0309bb09647cdb8361b080a67b1cdeac5a3483f2
Author: Philip Withnall <withnall endlessm com>
Date: Fri Nov 3 18:27:00 2017 +0000
contacts: Fix pagination for contact queries
Use the right pagination type to avoid an assertion failure.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=786532
gdata/services/contacts/gdata-contacts-query.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/contacts/gdata-contacts-query.c b/gdata/services/contacts/gdata-contacts-query.c
index 69c8b0b..51b61d1 100644
--- a/gdata/services/contacts/gdata-contacts-query.c
+++ b/gdata/services/contacts/gdata-contacts-query.c
@@ -182,9 +182,12 @@ gdata_contacts_query_init (GDataContactsQuery *self)
{
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_CONTACTS_QUERY, GDataContactsQueryPrivate);
- /*
https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference */
+ /* https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference
+ * indicates that the Contacts service uses index pagination, but all
+ * the results include next/previous URIs, so use those instead.
+ * (We have to — the #GDataService code will use them unconditionally.) */
_gdata_query_set_pagination_type (GDATA_QUERY (self),
- GDATA_QUERY_PAGINATION_INDEXED);
+ GDATA_QUERY_PAGINATION_URI);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]