aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-06 12:56:12 +0100
committerTed Gould <ted@canonical.com>2009-08-06 12:56:12 +0100
commit8f96c69134921cad27e583d2c9197e48c5fbfa96 (patch)
tree959bc76293938af8644a1dcaddf207d66f6f687b
parenta253844a712ceb8f54cb3b6fa5b090ba0a216e19 (diff)
downloadayatana-indicator-session-8f96c69134921cad27e583d2c9197e48c5fbfa96.tar.gz
ayatana-indicator-session-8f96c69134921cad27e583d2c9197e48c5fbfa96.tar.bz2
ayatana-indicator-session-8f96c69134921cad27e583d2c9197e48c5fbfa96.zip
Doing a registration and a connection to DBus
-rw-r--r--src/status-service-dbus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/status-service-dbus.c b/src/status-service-dbus.c
index 9ffc6aa..5096bfe 100644
--- a/src/status-service-dbus.c
+++ b/src/status-service-dbus.c
@@ -2,6 +2,9 @@
#include "config.h"
#endif
+#include <dbus/dbus-glib.h>
+
+#include "dbus-shared-names.h"
#include "status-service-dbus.h"
static void status_service_dbus_class_init (StatusServiceDbusClass *klass);
@@ -23,6 +26,8 @@ status_service_dbus_class_init (StatusServiceDbusClass *klass)
object_class->dispose = status_service_dbus_dispose;
object_class->finalize = status_service_dbus_finalize;
+
+ dbus_g_object_type_install_info(STATUS_SERVICE_DBUS_TYPE, &dbus_glib__status_service_server_object_info);
return;
}
@@ -31,6 +36,11 @@ static void
status_service_dbus_init (StatusServiceDbus *self)
{
+ DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
+ dbus_g_connection_register_g_object(connection,
+ INDICATOR_STATUS_DBUS_OBJECT,
+ G_OBJECT(self));
+
return;
}