[telepathy-mission-control/master] McdService: don't actually export the object

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Apr 2 12:36:08 PDT 2009


This avoids emitting D-Bus signals. For now the GObject signals are still
emitted, since it's harder to determine which ones are still needed.
---
 src/mcd-service.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/mcd-service.c b/src/mcd-service.c
index ede2204..0d6b878 100644
--- a/src/mcd-service.c
+++ b/src/mcd-service.c
@@ -276,7 +276,7 @@ mcd_service_register_filter(GObject *obj,
 #include "mcd-service-gen.h"
 
 static void
-mcd_register_dbus_object (McdService * obj)
+mcd_service_obtain_bus_name (McdService * obj)
 {
     DBusError error;
     DBusGConnection *connection;
@@ -295,14 +295,6 @@ mcd_register_dbus_object (McdService * obj)
 		 MISSION_CONTROL_DBUS_SERVICE);
 	dbus_error_free (&error);
     }
-    
-    DEBUG ("Registering MC object");
-    mcd_debug_print_tree (obj);
-    dbus_g_connection_register_g_object (connection,
-					 MISSION_CONTROL_DBUS_OBJECT,
-					 G_OBJECT (obj));
-    DEBUG ("Registered MC object");
-    mcd_debug_print_tree (obj);
 }
 
 static void
@@ -589,7 +581,7 @@ mcd_service_constructed (GObject *obj)
     g_signal_connect (priv->dispatcher, "dispatched",
 		      G_CALLBACK (_on_dispatcher_channel_dispatched), obj);
 
-    mcd_register_dbus_object (MCD_OBJECT (obj));
+    mcd_service_obtain_bus_name (MCD_OBJECT (obj));
     mcd_debug_print_tree (obj);
 
     if (G_OBJECT_CLASS (parent_class)->constructed)
-- 
1.5.6.5




More information about the telepathy-commits mailing list