diff options
author | Chris Toshok <toshok@ximian.com> | 2004-05-20 09:17:29 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-05-20 09:17:29 +0800 |
commit | 408266b22e32d386d8b2fd5b50117b1755d0e68b (patch) | |
tree | 3665bc11156438513aba2156a83cf8dfeb1a14c0 /mail/importers | |
parent | afb051139213e937b7fe160acc185c194a3edf16 (diff) | |
download | gsoc2013-evolution-408266b22e32d386d8b2fd5b50117b1755d0e68b.tar.gz gsoc2013-evolution-408266b22e32d386d8b2fd5b50117b1755d0e68b.tar.zst gsoc2013-evolution-408266b22e32d386d8b2fd5b50117b1755d0e68b.zip |
use the new e_book_new_* and e_book_open apis.
2004-05-19 Chris Toshok <toshok@ximian.com>
* 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
Diffstat (limited to 'mail/importers')
-rw-r--r-- | mail/importers/pine-importer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/importers/pine-importer.c b/mail/importers/pine-importer.c index 21b0eebf02..8ca7c31c60 100644 --- a/mail/importers/pine-importer.c +++ b/mail/importers/pine-importer.c @@ -264,15 +264,15 @@ import_contacts(PineImporter *importer) if (fp == NULL) return; + primary = e_source_list_peek_source_any(source_list); /* FIXME Better error handling */ - if ((book = e_book_new()) == NULL) { + if ((book = e_book_new(primary,NULL)) == NULL) { fclose(fp); g_warning ("Could not create EBook."); return; } - primary = e_source_list_peek_source_any(source_list); - e_book_load_source(book, primary, TRUE, NULL); + e_book_open(book, TRUE, NULL); g_object_unref(primary); g_object_unref(source_list); |