[evolution-couchdb] addressbook: Add missing call to e_book_backend_notify_opened in _open method



commit 4b8992d5c2ab84194021cda3bd51a2b818751faa
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Aug 10 16:30:32 2011 +0200

    addressbook: Add missing call to e_book_backend_notify_opened in _open method

 addressbook/e-book-backend-couchdb.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index 409a67e..3cd5797 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -1235,6 +1235,7 @@ e_book_backend_couchdb_load_source (EBookBackend *backend,
 	couchdb_database_listen_for_changes (couchdb_backend->database);
 #if EDS_CHECK_VERSION(3, 1, 2)
 	e_book_backend_notify_readonly (backend, FALSE);
+	e_book_backend_notify_opened (backend, NULL);
 #else
 	e_book_backend_set_is_loaded (backend, TRUE);
 	e_book_backend_set_is_writable (backend, TRUE);
@@ -1564,11 +1565,11 @@ e_book_backend_couchdb_get_contact_list (EBookBackend *backend,
 
 		vcard = e_vcard_to_string (E_VCARD (contact), EVC_FORMAT_VCARD_30);
 		if (vcard != NULL) {
-			#if EDS_CHECK_VERSION(3, 1, 2)
+#if EDS_CHECK_VERSION(3, 1, 2)
 			contacts = g_slist_prepend (contacts, vcard);
-			#else
+#else
 			contacts = g_list_prepend (contacts, vcard);
-			#endif
+#endif
 		}
 
 		doc_list = g_list_remove (doc_list, contact);
@@ -1580,12 +1581,13 @@ e_book_backend_couchdb_get_contact_list (EBookBackend *backend,
 #else
 	e_data_book_respond_get_contact_list (book, opid, GNOME_Evolution_Addressbook_Success, contacts);
 #endif
-	#if EDS_CHECK_VERSION(3, 1, 2)
+#if EDS_CHECK_VERSION(3, 1, 2)
 	g_slist_foreach (contacts, (GFunc) g_free, NULL);
 	g_slist_free (contacts);
-	#else
+#else
+	g_list_foreach (contacts, (GFunc) g_free, NULL);
 	g_list_free (contacts);
-	#endif
+#endif
 }
 
 static void



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