[Telepathy-commits] [telepathy-gabble/master] gabble_bytestream_factory_create_multiple: insert bytestream to multiple_bytestreams hash table
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:35 PST 2009
---
src/bytestream-factory.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-factory.c b/src/bytestream-factory.c
index 15a697b..b896695 100644
--- a/src/bytestream-factory.c
+++ b/src/bytestream-factory.c
@@ -1358,6 +1358,7 @@ gabble_bytestream_factory_create_multiple (GabbleBytestreamFactory *self,
{
GabbleBytestreamFactoryPrivate *priv;
GabbleBytestreamMultiple *multiple;
+ BytestreamIdentifier *id;
g_return_val_if_fail (GABBLE_IS_BYTESTREAM_FACTORY (self), NULL);
priv = GABBLE_BYTESTREAM_FACTORY_GET_PRIVATE (self);
@@ -1375,6 +1376,10 @@ gabble_bytestream_factory_create_multiple (GabbleBytestreamFactory *self,
g_signal_connect (multiple, "state-changed",
G_CALLBACK (bytestream_state_changed_cb), self);
+ id = bytestream_id_new (GABBLE_BYTESTREAM_IFACE (multiple));
+ DEBUG ("add multi bytestream <%s> from <%s>", id->stream, id->jid);
+ g_hash_table_insert (priv->multiple_bytestreams, id, multiple);
+
return multiple;
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list