[Telepathy-commits] [telepathy-gabble/master] GabbleConnection: move the GabbleImFactory from the factories list to the managers list, so its new API is used
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Aug 20 09:38:32 PDT 2008
20080729195337-53eee-3d2675cefffa157fcd817c35dba17c11d03f4a65.gz
---
src/connection.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/connection.c b/src/connection.c
index 9fec211..a236ce8 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -203,20 +203,21 @@ _gabble_connection_create_channel_factories (TpBaseConnection *conn)
"connection", self,
NULL));
- g_ptr_array_add (channel_factories,
- g_object_new (GABBLE_TYPE_IM_FACTORY,
- "connection", self,
- NULL));
-
self->private_tubes_factory = gabble_private_tubes_factory_new (self);
g_ptr_array_add (channel_factories, self->private_tubes_factory);
/* Temporary hack for requestotron support - divert the channel factories
* and channel managers to somewhere under our control */
self->channel_factories = channel_factories;
- self->channel_managers = g_ptr_array_sized_new (0);
channel_factories = g_ptr_array_sized_new (0);
+ self->channel_managers = g_ptr_array_sized_new (1);
+
+ g_ptr_array_add (self->channel_managers,
+ g_object_new (GABBLE_TYPE_IM_FACTORY,
+ "connection", self,
+ NULL));
+
return channel_factories;
}
--
1.5.6.3
More information about the Telepathy-commits
mailing list