[Telepathy-commits] [telepathy-mission-control/master] Capabilities interface: Hooks _add_signals functions

Alban Crequy alban.crequy at collabora.co.uk
Thu Nov 27 05:05:53 PST 2008


---
 src/mcd-connection.c |    4 ++++
 src/mcd-dispatcher.c |    5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index fe255b9..61c1df2 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1694,6 +1694,10 @@ mcd_connection_class_init (McdConnectionClass * klass)
 
     klass->need_dispatch = mcd_connection_need_dispatch;
 
+    tp_proxy_or_subclass_hook_on_interface_add
+        (TP_TYPE_CONNECTION,
+         mc_cli_Connection_Interface_Contact_Capabilities_add_signals);
+
     /* Properties */
     g_object_class_install_property
         (object_class, PROP_DISPATCHER,
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index a9d7811..60c721d 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2148,8 +2148,6 @@ create_client_proxy (McdDispatcher *self, McdClient *client)
                                   "object-path", object_path,
                                   "bus-name", bus_name,
                                   NULL);
-    /* call this empty auto-generated function or it will be unused */
-    mc_cli_client_add_signals(NULL, 0, NULL, NULL);
     g_free (object_path);
     g_free (bus_name);
 
@@ -2473,6 +2471,9 @@ mcd_dispatcher_class_init (McdDispatcherClass * klass)
     object_class->dispose = _mcd_dispatcher_dispose;
     klass->send = _mcd_dispatcher_send;
 
+    tp_proxy_or_subclass_hook_on_interface_add
+        (TP_TYPE_PROXY, mc_cli_client_add_signals);
+
     signals[CHANNEL_ADDED] =
 	g_signal_new ("channel_added",
 		      G_OBJECT_CLASS_TYPE (klass),
-- 
1.5.6.5




More information about the Telepathy-commits mailing list