[Telepathy-commits] [telepathy-gabble/master] GabbleImFactory: also emit new-channels when a channel satisfies a request
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Aug 20 09:38:24 PDT 2008
20080725131650-53eee-c8c436e223fba853e9414219fcef8a8baefb36c5.gz
---
src/im-factory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/im-factory.c b/src/im-factory.c
index 676555c..71d2b79 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -354,6 +354,7 @@ new_im_channel (GabbleImFactory *fac,
TpBaseConnection *conn;
GabbleIMChannel *chan;
char *object_path;
+ GPtrArray *channels;
g_return_val_if_fail (GABBLE_IS_IM_FACTORY (fac), NULL);
g_return_val_if_fail (handle != 0, NULL);
@@ -383,6 +384,11 @@ new_im_channel (GabbleImFactory *fac,
g_free (object_path);
+ channels = g_ptr_array_sized_new (1);
+ g_ptr_array_add (channels, chan);
+ g_signal_emit_by_name (self, "new-channels", channels);
+ g_ptr_array_free (channels, TRUE);
+
return chan;
}
--
1.5.6.3
More information about the Telepathy-commits
mailing list