Summary: | add TP_CONNECTION_FEATURE_CAPABILITIES | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Guillaume Desmottes <guillaume.desmottes> |
Component: | tp-glib | Assignee: | Guillaume Desmottes <guillaume.desmottes> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | enhancement | ||
Priority: | medium | Keywords: | patch |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://git.collabora.co.uk/?p=user/cassidy/telepathy-glib;a=shortlog;h=refs/heads/conn-caps-27618 | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: | ||
Bug Depends on: | 27511 | ||
Bug Blocks: | 21332 |
Description
Guillaume Desmottes
2010-04-13 06:18:17 UTC
http://git.collabora.co.uk/?p=user/cassidy/telepathy-glib;a=shortlog;h=refs/heads/conn-caps-27618 This is based on my capabilities branch so bug #27511 should be reviewed first. > + PROP_CAPABILIES, That's not how you spell capabilities. > + * The %TP_CAPABILITIES object representing the capabilities of this The #TpCapabilities object ... > + * To wait for a valid capabilities, call tp_proxy_prepare_async() with To wait for valid capability information, ... > + self->priv->capabilities = _tp_capabilities_new (g_value_get_boxed (value), You need to check that the GValue contains the right boxed type first. If it doesn't, consider the connection to have no capabilities, or make the capabilities feature fail, or something. (In reply to comment #2) > > + PROP_CAPABILIES, > > That's not how you spell capabilities. Oops; fixed. > > + * The %TP_CAPABILITIES object representing the capabilities of this > > The #TpCapabilities object ... done. > > + * To wait for a valid capabilities, call tp_proxy_prepare_async() with > > To wait for valid capability information, ... fixed. > > + self->priv->capabilities = _tp_capabilities_new (g_value_get_boxed (value), > > You need to check that the GValue contains the right boxed type first. If it > doesn't, consider the connection to have no capabilities, or make the > capabilities feature fail, or something. Done. Looks good to me. Merged. Will be in 0.11.3 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.