From 408266b22e32d386d8b2fd5b50117b1755d0e68b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 20 May 2004 01:17:29 +0000 Subject: use the new e_book_new_* and e_book_open apis. 2004-05-19 Chris Toshok * importers/pine-importer.c (import_contacts): use the new e_book_new_* and e_book_open apis. * em-utils.c (em_utils_in_addressbook): use the new e_book_new_* and e_book_open apis. svn path=/trunk/; revision=26001 --- mail/em-utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mail/em-utils.c') diff --git a/mail/em-utils.c b/mail/em-utils.c index 9cf3ff66b4..c82d2c9636 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1732,11 +1732,12 @@ em_utils_in_addressbook(CamelInternetAddress *iaddr) GList *contacts; EBook *book; - book = e_book_new(); - printf(" checking '%s'\n", e_source_get_uri(source)); - if (!e_book_load_source(book, source, TRUE, &err)) { + book = e_book_new(source, &err); + + if (!book + || !e_book_open(book, TRUE, &err)) { printf("couldn't load source?\n"); g_clear_error(&err); g_object_unref(book); -- cgit v1.2.3