aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-29 16:11:02 -0500
committerTed Gould <ted@canonical.com>2009-10-29 16:11:02 -0500
commit2e39b18fd87c298eeb9e104d3e80f76b1d937c21 (patch)
tree3dcd1fbd200d9bfdb25bae41d6fdc716ca095c66
parentf99a9f269a702b2db3f96e1b6740e9eceb6b9ca8 (diff)
downloadlibayatana-indicator-2e39b18fd87c298eeb9e104d3e80f76b1d937c21.tar.gz
libayatana-indicator-2e39b18fd87c298eeb9e104d3e80f76b1d937c21.tar.bz2
libayatana-indicator-2e39b18fd87c298eeb9e104d3e80f76b1d937c21.zip
Woot! We're a DBus service now.
-rw-r--r--libindicator/indicator-service.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c
index 9b7e885..125ecfc 100644
--- a/libindicator/indicator-service.c
+++ b/libindicator/indicator-service.c
@@ -5,6 +5,11 @@
#include "indicator-service.h"
+/* DBus Prototypes */
+void _indicator_service_server_watch (void);
+
+#include "indicator-service-server.h"
+
/* Private Stuff */
typedef struct _IndicatorServicePrivate IndicatorServicePrivate;
@@ -87,6 +92,10 @@ indicator_service_class_init (IndicatorServiceClass *klass)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0, G_TYPE_NONE);
+ /* Initialize the object as a DBus type */
+ dbus_g_object_type_install_info(INDICATOR_SERVICE_TYPE,
+ &dbus_glib__indicator_service_server_object_info);
+
return;
}
@@ -119,6 +128,10 @@ indicator_service_init (IndicatorService *self)
return;
}
+ dbus_g_connection_register_g_object(session_bus,
+ "/need/a/path",
+ G_OBJECT(self));
+
return;
}
@@ -241,6 +254,8 @@ try_and_get_name (IndicatorService * service)
return;
}
+void _indicator_service_server_watch (void) { }
+
/* API */
/**