Summary: | TpChannel: priv->handle_type overrided during object construction | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Guillaume Desmottes <guillaume.desmottes> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.com/git/user/cassidy/telepathy-glib/log/?h=channel-type-38524 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | channel-iface: set TP_UNKNOWN_HANDLE_TYPE as default handle type |
Description
Guillaume Desmottes
2011-06-21 06:39:10 UTC
http://cgit.collabora.com/git/user/cassidy/telepathy-glib/log/?h=channel-type-38524 Note that this bug has been discovered in https://bugzilla.gnome.org/show_bug.cgi?id=653003 as Empathy now rely more on tp_channel_get_handle(). Created attachment 48228 [details] [review] channel-iface: set TP_UNKNOWN_HANDLE_TYPE as default handle type TP_HANDLE_TYPE_NONE is not a good default, if we don't know the handle type we shouln't try to guess it. This also confuses TpChannel which think we are setting a valid handle type; see fdo#38524. Review of attachment 48228 [details] [review]: r+ ::: telepathy-glib/channel-iface.c @@ +97,3 @@ param_spec = g_param_spec_uint ("handle-type", "Handle type", "The TpHandleType of this channel's associated handle.", + 0, G_MAXUINT32, TP_UNKNOWN_HANDLE_TYPE, Well, this feels a bit sketchy because TP_UNKNOWN_HANDLE_TYPE is not really a TpHandleType: but the property is already documented to have this value in some cases, as is tp_channel_get_handle(). So this is fine! Good catch, I would never have thought of looking here. Merged to 0.14 and master. Will be in 0.14.8 and 0.15.2 |
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.