[telepathy-mission-control/master] McdDispatcher: attach a stub handler to McdClient::ready
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Sep 22 09:59:20 PDT 2009
---
src/mcd-dispatcher.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 7a599e7..bd1ac42 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2010,6 +2010,16 @@ mcd_client_start_introspection (McdClientProxy *client,
mcd_dispatcher_release_startup_lock (dispatcher);
}
+static void
+mcd_dispatcher_client_ready_cb (McdClientProxy *client,
+ McdDispatcher *dispatcher)
+{
+ DEBUG ("%s", tp_proxy_get_bus_name (client));
+
+ /* FIXME: in theory, the McdDispatcher might not still be alive at this
+ * point? */
+}
+
/* Check the list of strings whether they are valid well-known names of
* Telepathy clients and create McdClientProxy objects for each of them.
*/
@@ -2069,6 +2079,10 @@ mcd_dispatcher_add_client (McdDispatcher *self,
g_hash_table_insert (priv->clients, g_strdup (name), client);
+ g_signal_connect (client, "ready",
+ G_CALLBACK (mcd_dispatcher_client_ready_cb),
+ self);
+
g_signal_connect (client, "unique-name-known",
G_CALLBACK (mcd_client_start_introspection),
self);
--
1.5.6.5
More information about the telepathy-commits
mailing list