aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-29 16:29:47 -0500
committerTed Gould <ted@canonical.com>2009-10-29 16:29:47 -0500
commit82aaaed9788d56fa2739da70621e56f1e21ec0a8 (patch)
tree6d4a0f1dfde97ed2194a1b0a539d5e8bf1f4f21b /libindicator
parent2e39b18fd87c298eeb9e104d3e80f76b1d937c21 (diff)
downloadlibayatana-indicator-82aaaed9788d56fa2739da70621e56f1e21ec0a8.tar.gz
libayatana-indicator-82aaaed9788d56fa2739da70621e56f1e21ec0a8.tar.bz2
libayatana-indicator-82aaaed9788d56fa2739da70621e56f1e21ec0a8.zip
Adding in some shared strings for finding intefaces and objects.
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/Makefile.am1
-rw-r--r--libindicator/dbus-shared.h4
-rw-r--r--libindicator/indicator-service.c3
3 files changed, 7 insertions, 1 deletions
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am
index cce87ca..209b787 100644
--- a/libindicator/Makefile.am
+++ b/libindicator/Makefile.am
@@ -19,6 +19,7 @@ lib_LTLIBRARIES = \
libindicator_la_SOURCES = \
$(indicator_headers) \
+ dbus-shared.h \
indicator-object.c \
indicator-service.c \
indicator-service-manager.c
diff --git a/libindicator/dbus-shared.h b/libindicator/dbus-shared.h
new file mode 100644
index 0000000..f64588c
--- /dev/null
+++ b/libindicator/dbus-shared.h
@@ -0,0 +1,4 @@
+
+#define INDICATOR_SERVICE_INTERFACE "org.ayatana.indicator.service"
+#define INDICATOR_SERVICE_OBJECT "/org/ayatana/indicator/service"
+
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c
index 125ecfc..eef916b 100644
--- a/libindicator/indicator-service.c
+++ b/libindicator/indicator-service.c
@@ -9,6 +9,7 @@
void _indicator_service_server_watch (void);
#include "indicator-service-server.h"
+#include "dbus-shared.h"
/* Private Stuff */
typedef struct _IndicatorServicePrivate IndicatorServicePrivate;
@@ -129,7 +130,7 @@ indicator_service_init (IndicatorService *self)
}
dbus_g_connection_register_g_object(session_bus,
- "/need/a/path",
+ INDICATOR_SERVICE_OBJECT,
G_OBJECT(self));
return;