After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579812 - Use avatar data/cache from TpContact
Use avatar data/cache from TpContact
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks: 619488
 
 
Reported: 2009-04-22 09:48 UTC by Xavier Claessens
Modified: 2010-05-26 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Claessens 2009-04-22 09:48:08 UTC
We should use the avatar cache and get image data from TpContact. Unfortunately that's not yet implemented in tp-glib so we have our own implementation for now.

telepathy-glib bug: https://bugs.freedesktop.org/show_bug.cgi?id=20035
Comment 1 Guillaume Desmottes 2009-04-28 12:28:03 UTC
Note that fixing this bug will remove the tp_cli_connection_interface_avatars_run_get_known_avatar_tokens () in tp_contact_factory_add_contact which is one of the latest _run_ calls.
Comment 2 Guillaume Desmottes 2009-05-13 13:08:37 UTC
TpContact already has a TP_CONTACT_FEATURE_AVATAR_TOKEN feature. So we could use that atm to remove the _run_ call even if the full avatar caching is not implemented yet in tp-glib.
Comment 3 Xavier Claessens 2009-05-13 14:45:02 UTC
right.
Comment 4 Xavier Claessens 2009-10-12 11:26:05 UTC
I made a patch for TpContact to add the needed API:
http://git.collabora.co.uk/?p=user/xclaesse/telepathy-glib.git;a=shortlog;h=refs/heads/avatar-data

Here is an incomplete empathy branch that use the proposed API:
http://git.collabora.co.uk/?p=user/xclaesse/empathy.git;a=shortlog;h=refs/heads/avatar

Note that TpContact won't keep avatar data in memory (unlike EmpathyContact). That means that avatar data must be requested each time it is needed. An issue with my empathy branch is that it loads the avatar data from cache each time a tooltip is shown on the main contact list... That's a performance disasted. We should probably keep the avatar data (or pixbuf?) in memory for that case.
Comment 6 Guillaume Desmottes 2010-05-10 13:20:47 UTC
Looks good. Please merge once Empathy depends on a tp-glib version having the new API.
Comment 7 Xavier Claessens 2010-05-19 10:43:33 UTC
Telepathy-glib branch merged in master. Will be released in 0.11.6 probably.
Comment 8 Xavier Claessens 2010-05-26 09:16:39 UTC
merged, thanks.