diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-23 08:28:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-24 08:52:20 +0800 |
commit | 3bf02daa08271ae5201008ee362a045b217c6a7a (patch) | |
tree | 9b84d47b39575d7fa423e8a0ff121ebe472ae2ec /mail | |
parent | 822fcbbd0fa5cfb69d03b689571a20a52c97ae12 (diff) | |
download | gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar.gz gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar.bz2 gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar.lz gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar.xz gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.tar.zst gsoc2013-evolution-3bf02daa08271ae5201008ee362a045b217c6a7a.zip |
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()
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |