[evolution-couchdb] Use categories API for contacts



commit 613f45671317c2004f30e0e3820a50a45f642537
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Jan 27 14:32:31 2010 +0100

    Use categories API for contacts

 addressbook/e-book-backend-couchdb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index 398b45a..f02950b 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -95,6 +95,8 @@ vcard_from_couch_document (CouchdbDocument *document)
 		       (const gpointer) desktopcouch_document_contact_get_assistant_name (document));
 	e_contact_set (contact, E_CONTACT_OFFICE,
 		       (const gpointer) desktopcouch_document_contact_get_office (document));
+	e_contact_set (contact, E_CONTACT_CATEGORIES,
+		       (const gpointer) desktopcouch_document_contact_get_categories (document));
 	e_contact_set (contact, E_CONTACT_NOTE,
 		       (const gpointer) desktopcouch_document_contact_get_notes (document));
 
@@ -685,6 +687,7 @@ couch_document_from_contact (EBookBackendCouchDB *couchdb_backend, EContact *con
 	desktopcouch_document_contact_set_manager_name (document, (const char *) e_contact_get_const (contact, E_CONTACT_MANAGER));
 	desktopcouch_document_contact_set_assistant_name (document, (const char *) e_contact_get_const (contact, E_CONTACT_ASSISTANT));
 	desktopcouch_document_contact_set_office (document, (const char *) e_contact_get_const (contact, E_CONTACT_OFFICE));
+	desktopcouch_document_contact_set_categories (document, (const char *) e_contact_get_const (contact, E_CONTACT_CATEGORIES));
 	desktopcouch_document_contact_set_notes (document, (const char *) e_contact_get_const (contact, E_CONTACT_NOTE));
 
 	/* email addresses */



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