From 64ec1cff73070b2f8c4ddf33bdba10dde4521127 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 8 Sep 2008 17:15:46 +0000 Subject: [PATCH] * src/maemo/modest-address-book.c: * Build fix for fremantle addressbook. pmo-trunk-r5502 --- src/maemo/modest-address-book.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/maemo/modest-address-book.c b/src/maemo/modest-address-book.c index 5114182..d57c2d2 100644 --- a/src/maemo/modest-address-book.c +++ b/src/maemo/modest-address-book.c @@ -307,9 +307,17 @@ static GSList *get_recipients_for_given_contact(EContact * contact) /*Launch the 'Add e-mail addr to contact' dialog if required */ if (email_not_present) { - display_name = osso_abook_contact_get_display_name(contact); - emailid = get_email_addr_from_user(display_name); +#if MODEST_ABOOK_API < 4 + display_name = osso_abook_contact_get_display_name(contact); +#else + OssoABookContact *abook_contact; + + abook_contact = osso_abook_contact_new_from_master (contact); + display_name = osso_abook_contact_get_display_name(abook_contact); + g_object_unref (abook_contact); +#endif + emailid = get_email_addr_from_user(display_name); if (emailid) { e_contact_set(contact, E_CONTACT_EMAIL_1, emailid); commit_contact(contact, FALSE); -- 1.7.9.5