From 3bf02daa08271ae5201008ee362a045b217c6a7a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 22 Apr 2013 20:28:14 -0400 Subject: Reimplement EPhotoCache to use EPhotoSource. Reimplement EPhotoCache to delegate the actual photo fetching to EPhotoSources. When a photo is requested for a given email address, all available EPhotoSources are dispatched concurrently and a photo input stream is selected from the result set. This also utilizes EDataCapture, which is affixed to the returned GInputStream to capture and cache photo data for an email address. New functions: e_photo_cache_add_photo_source() e_photo_cache_list_photo_sources() e_photo_cache_remove_photo_source() e_photo_cache_add_photo() Renamed functions: e_photo_cache_remove() --> e_photo_cache_remove_photo() --- mail/e-mail-reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 1556481d62..e36b1f745b 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -199,7 +199,7 @@ action_mail_add_sender_cb (GtkAction *action, photo_cache = e_mail_ui_session_get_photo_cache ( E_MAIL_UI_SESSION (session)); camel_internet_address_get (cia, 0, NULL, &address_only); - e_photo_cache_remove (photo_cache, address_only); + e_photo_cache_remove_photo (photo_cache, address_only); } g_object_unref (cia); @@ -261,7 +261,7 @@ action_add_to_address_book_cb (GtkAction *action, photo_cache = e_mail_ui_session_get_photo_cache ( E_MAIL_UI_SESSION (session)); camel_internet_address_get (cia, 0, NULL, &address_only); - e_photo_cache_remove (photo_cache, address_only); + e_photo_cache_remove_photo (photo_cache, address_only); g_object_unref (cia); -- cgit v1.2.3