[evolution-data-server] Fix build breaks when using libgdata 0.9.



commit 6634e40635092a2f47877c2f3bc05816a33c32d8
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jun 26 07:50:50 2011 -0400

    Fix build breaks when using libgdata 0.9.

 .../backends/google/e-book-backend-google.c        |   28 ++++++++++++++++---
 1 files changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index 441100d..c9da00a 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -596,9 +596,18 @@ get_new_contacts (EBookBackend *backend)
 
 	/* Query for new contacts asynchronously */
 	cancellable = start_operation (backend, 0, NULL, _("Querying for updated contactsâ"));
-	gdata_contacts_service_query_contacts_async (GDATA_CONTACTS_SERVICE (priv->service), query, cancellable,
-						     (GDataQueryProgressCallback) (last_updated ? process_subsequent_entry : process_initial_entry),
-						     backend, (GAsyncReadyCallback) get_new_contacts_cb, backend);
+	gdata_contacts_service_query_contacts_async (
+		GDATA_CONTACTS_SERVICE (priv->service),
+		query,
+		cancellable,
+		(GDataQueryProgressCallback) (last_updated ?
+			process_subsequent_entry : process_initial_entry),
+		backend,
+#if HAVE_LIBGDATA_0_9
+		(GDestroyNotify) NULL,
+#endif
+		(GAsyncReadyCallback) get_new_contacts_cb,
+		backend);
 
 	g_object_unref (cancellable);
 	g_object_unref (query);
@@ -718,8 +727,17 @@ get_groups (EBookBackend *backend)
 
 	/* Run the query asynchronously */
 	cancellable = start_operation (backend, 1, NULL, _("Querying for updated groupsâ"));
-	gdata_contacts_service_query_groups_async (GDATA_CONTACTS_SERVICE (priv->service), query, cancellable,
-						   (GDataQueryProgressCallback) process_group, backend, (GAsyncReadyCallback) get_groups_cb, backend);
+	gdata_contacts_service_query_groups_async (
+		GDATA_CONTACTS_SERVICE (priv->service),
+		query,
+		cancellable,
+		(GDataQueryProgressCallback) process_group,
+		backend,
+#ifdef HAVE_LIBGDATA_0_9
+		(GDestroyNotify) NULL,
+#endif
+		(GAsyncReadyCallback) get_groups_cb,
+		backend);
 
 	g_object_unref (cancellable);
 	g_object_unref (query);



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