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 616603 - Should use tp-glib API to get avatar requirements
Should use tp-glib API to get avatar requirements
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: 2010-04-23 07:43 UTC by Xavier Claessens
Modified: 2011-08-29 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Claessens 2010-04-23 07:43:17 UTC
Next version of tp-glib should provide API to get avatar requirements from a TpConnection, so we can drop our code in EmpathyTpContactFactory.

Patch: http://git.collabora.co.uk/?p=user/xclaesse/empathy.git;a=shortlog;h=refs/heads/avatar-req
Comment 1 Guillaume Desmottes 2010-04-26 09:01:04 UTC
Please log a DEBUG message if proxy_prepare failed and if tp_connection_get_avatar_requirements returned NULL.

+               tp_proxy_prepare_async ((TpProxy *) priv->connection,
No need to cast, this function takes a gpointer.

You should have split this branch into 2 commits:
- Make use of TP_CONNECTION_FEATURE_AVATAR_REQUIREMENTS (and put the bug number in the commit msg)
- Remove the old code in the factory.

Note that we have to wait that tp-glib 0.11.4 has been released and Empathy can depend on it before merging this.
Comment 2 Xavier Claessens 2010-04-29 09:46:56 UTC
(In reply to comment #1)
> Please log a DEBUG message if proxy_prepare failed
no need, tp-glib already log the error.

> and if tp_connection_get_avatar_requirements returned NULL.
done

> +               tp_proxy_prepare_async ((TpProxy *) priv->connection,
> No need to cast, this function takes a gpointer.
done

> You should have split this branch into 2 commits:
> - Make use of TP_CONNECTION_FEATURE_AVATAR_REQUIREMENTS (and put the bug number
> in the commit msg)
> - Remove the old code in the factory.
done

> Note that we have to wait that tp-glib 0.11.4 has been released and Empathy can
> depend on it before merging this.
upgraded dep now that it's released

I also added a not related trivial patch to remove usage of factory to publish location.
Comment 3 Guillaume Desmottes 2010-04-30 14:01:24 UTC
Looks good. We'll merge once Empathy is allowed to depend on tp-glib 0.11.4 (I may skip this one and wait for 0.11.5 though).
Feel free to merge the third patch now if you want.
Comment 4 Guillaume Desmottes 2010-05-26 09:11:10 UTC
Please merge.
Comment 5 Xavier Claessens 2010-05-26 09:16:46 UTC
merged, thanks.