[Telepathy-commits] [telepathy-mission-control/master] Make sure the channel handle is set
Alberto Mardegan
alberto.mardegan at nokia.com
Fri Nov 7 01:32:55 PST 2008
If there is a handle in the dictionary of channel properties we receive, store
it.
---
src/mcd-channel.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index 8ec20ed..a8479d9 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -1129,8 +1129,18 @@ void
_mcd_channel_set_immutable_properties (McdChannel *channel,
GHashTable *properties)
{
+ gboolean present;
+ guint handle;
+
g_object_set_data_full ((GObject *)channel, CD_IMMUTABLE_PROPERTIES,
properties, (GDestroyNotify)g_hash_table_unref);
+ /* copy any properties into the channel */
+ /* FIXME: this is only a quick fix. This all "immutable properties" thing
+ * must be revisited, when a similar TpGlib API exists */
+ handle = tp_asv_get_uint32 (properties, TP_IFACE_CHANNEL ".TargetHandle",
+ &present);
+ if (present)
+ channel->priv->handle = handle;
}
/*
--
1.5.6.5
More information about the Telepathy-commits
mailing list