[evolution-data-server] Bug 775699 - Only latest 100 tasks downloaded from the Google ][



commit 4f797ae14e0dc0a432fcc2c2e9eafb1d4e86b9d3
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 27 11:24:20 2017 +0100

    Bug 775699 - Only latest 100 tasks downloaded from the Google ][
    
    Store/use local data version only when the pagination in libgdata is
    used, otherwise the auto-update of the internal data won't work.

 .../backends/gtasks/e-cal-backend-gtasks.c         |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/backends/gtasks/e-cal-backend-gtasks.c 
b/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
index 9a12a95..5076f58 100644
--- a/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
+++ b/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
@@ -61,6 +61,7 @@ G_DEFINE_TYPE (ECalBackendGTasks, e_cal_backend_gtasks, E_TYPE_CAL_BACKEND)
 static gboolean
 ecb_gtasks_check_data_version_locked (ECalBackendGTasks *gtasks)
 {
+#ifdef HAVE_LIBGDATA_TASKS_PAGINATION_FUNCTIONS
        const gchar *key;
        gboolean data_version_correct;
 
@@ -70,12 +71,17 @@ ecb_gtasks_check_data_version_locked (ECalBackendGTasks *gtasks)
        data_version_correct = g_strcmp0 (key, GTASKS_DATA_VERSION) == 0;
 
        return data_version_correct;
+#else
+       return TRUE;
+#endif
 }
 
 static void
 ecb_gtasks_store_data_version_locked (ECalBackendGTasks *gtasks)
 {
+#ifdef HAVE_LIBGDATA_TASKS_PAGINATION_FUNCTIONS
        e_cal_backend_store_put_key_value (gtasks->priv->store, GTASKS_KEY_VERSION, GTASKS_DATA_VERSION);
+#endif
 }
 
 static GCancellable *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]