[telepathy-glib/master] TpConnection: use tp_connection_init_known_interfaces() to add interfaces rather than reimplementing it

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jun 10 07:12:25 PDT 2009


---
 telepathy-glib/connection.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 0c9305e..658e679 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -660,11 +660,12 @@ tp_connection_dispose (GObject *object)
 static void
 tp_connection_class_init (TpConnectionClass *klass)
 {
-  GType tp_type = TP_TYPE_CONNECTION;
   GParamSpec *param_spec;
   TpProxyClass *proxy_class = (TpProxyClass *) klass;
   GObjectClass *object_class = (GObjectClass *) klass;
 
+  tp_connection_init_known_interfaces ();
+
   g_type_class_add_private (klass, sizeof (TpConnectionPrivate));
 
   object_class->constructor = tp_connection_constructor;
@@ -676,10 +677,6 @@ tp_connection_class_init (TpConnectionClass *klass)
   /* If you change this, you must also change TpChannel to stop asserting
    * that its connection has a unique name */
   proxy_class->must_have_unique_name = TRUE;
-  tp_proxy_or_subclass_hook_on_interface_add (tp_type,
-      tp_cli_connection_add_signals);
-  tp_proxy_subclass_add_error_mapping (tp_type,
-      TP_ERROR_PREFIX, TP_ERRORS, TP_TYPE_ERROR);
 
   /**
    * TpConnection:status:
-- 
1.5.6.5




More information about the telepathy-commits mailing list