summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-11-03 18:27:00 +0000
committerPhilip Withnall <withnall@endlessm.com>2017-11-03 18:27:00 +0000
commit0309bb09647cdb8361b080a67b1cdeac5a3483f2 (patch)
tree67a98e37640fce308f9cd739b5a4aad2e0fb690f
parent826e7ce4382f1e51977d1e032648d60fe1b0dcad (diff)
downloadlibgdata-0309bb09647cdb8361b080a67b1cdeac5a3483f2.tar.gz
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
-rw-r--r--gdata/services/contacts/gdata-contacts-query.c7
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 69c8b0b5..51b61d1b 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