aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-30 14:23:27 -0500
committerTed Gould <ted@gould.cx>2010-08-30 14:23:27 -0500
commitffe6f9fb45bf8ab898246dc79cfc2e09463ea6de (patch)
tree97fa2219b532085e4d729ccc1193186a74119333
parent1b7857c96f4419028092fe9ae823b08fc55c30b5 (diff)
downloadayatana-indicator-datetime-ffe6f9fb45bf8ab898246dc79cfc2e09463ea6de.tar.gz
ayatana-indicator-datetime-ffe6f9fb45bf8ab898246dc79cfc2e09463ea6de.tar.bz2
ayatana-indicator-datetime-ffe6f9fb45bf8ab898246dc79cfc2e09463ea6de.zip
Connecting onto the dbus
-rw-r--r--src/datetime-interface.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/datetime-interface.c b/src/datetime-interface.c
index 3ea5106..a500354 100644
--- a/src/datetime-interface.c
+++ b/src/datetime-interface.c
@@ -3,6 +3,8 @@
#endif
#include "datetime-interface.h"
+#include "datetime-service-server.h"
+#include "dbus-shared.h"
static void datetime_interface_class_init (DatetimeInterfaceClass *klass);
static void datetime_interface_init (DatetimeInterface *self);
@@ -19,12 +21,18 @@ datetime_interface_class_init (DatetimeInterfaceClass *klass)
object_class->dispose = datetime_interface_dispose;
object_class->finalize = datetime_interface_finalize;
+ dbus_g_object_type_install_info(DATETIME_INTERFACE_TYPE, &dbus_glib__datetime_service_server_object_info);
+
return;
}
static void
datetime_interface_init (DatetimeInterface *self)
{
+ DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
+ dbus_g_connection_register_g_object(connection,
+ SERVICE_OBJ,
+ G_OBJECT(self));
return;
}