[libgdata/offline-testing] core: Fix backwards pagination in GDataQuery
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/offline-testing] core: Fix backwards pagination in GDataQuery
- Date: Tue, 30 Jul 2013 08:26:51 +0000 (UTC)
commit 28b3fa1307a5d784057b1ee1885e479a632b4159
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Jul 8 11:57:51 2013 +0100
core: Fix backwards pagination in GDataQuery
If using pre-specific next/previous URIs, the previous URI wasn’t being
detected correctly due to a copy–paste error.
gdata/gdata-query.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-query.c b/gdata/gdata-query.c
index c368bb8..814e77b 100644
--- a/gdata/gdata-query.c
+++ b/gdata/gdata-query.c
@@ -1026,7 +1026,7 @@ gdata_query_previous_page (GDataQuery *self)
g_return_val_if_fail (GDATA_IS_QUERY (self), FALSE);
- if (priv->next_uri != NULL) {
+ if (priv->previous_uri != NULL) {
priv->use_previous_uri = TRUE;
priv->use_next_uri = FALSE;
} else if (priv->start_index <= priv->max_results) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]