aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-02 19:52:47 -0600
committerTed Gould <ted@canonical.com>2009-11-02 19:52:47 -0600
commit9aff9ba7149a1757f124db54599637801fa76ae6 (patch)
tree29e781e6f18dd2a3a9379da1b0b99e15cde9d312
parent3d1c4c46fd56576b228bc59dc7b3af3bf82db642 (diff)
downloadayatana-indicator-application-9aff9ba7149a1757f124db54599637801fa76ae6.tar.gz
ayatana-indicator-application-9aff9ba7149a1757f124db54599637801fa76ae6.tar.bz2
ayatana-indicator-application-9aff9ba7149a1757f124db54599637801fa76ae6.zip
Getting the name into a header.
-rw-r--r--src/Makefile.am2
-rw-r--r--src/custom-service.c3
-rw-r--r--src/dbus-shared.h3
3 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 6f7e6e6..273c2dc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,6 +12,7 @@ include $(top_srcdir)/Makefile.am.enum
customlibdir = $(INDICATORDIR)
customlib_LTLIBRARIES = libcustom.la
libcustom_la_SOURCES = \
+ dbus-shared.h \
indicator-custom.c
libcustom_la_CFLAGS = $(INDICATOR_CFLAGS) \
-Wall \
@@ -33,6 +34,7 @@ indicator_custom_service_SOURCES = \
custom-service-appstore.h \
custom-service-appstore.c \
custom-service-server.h \
+ dbus-shared.h \
notification-item-client.h \
notification-watcher-server.h
indicator_custom_service_CFLAGS = \
diff --git a/src/custom-service.c b/src/custom-service.c
index 2f8ecf5..df3d58a 100644
--- a/src/custom-service.c
+++ b/src/custom-service.c
@@ -2,6 +2,7 @@
#include "libindicator/indicator-service.h"
#include "notification-item-client.h"
#include "custom-service-appstore.h"
+#include "dbus-shared.h"
static GMainLoop * mainloop = NULL;
static CustomServiceAppstore * appstore = NULL;
@@ -12,7 +13,7 @@ main (int argc, char ** argv)
{
g_type_init();
- service = indicator_service_new("org.ayatana.indicator.custom");
+ service = indicator_service_new(INDICATOR_CUSTOM_DBUS_ADDR);
appstore = CUSTOM_SERVICE_APPSTORE(g_object_new(CUSTOM_SERVICE_APPSTORE_TYPE, NULL));
mainloop = g_main_loop_new(NULL, FALSE);
diff --git a/src/dbus-shared.h b/src/dbus-shared.h
new file mode 100644
index 0000000..36436bd
--- /dev/null
+++ b/src/dbus-shared.h
@@ -0,0 +1,3 @@
+
+#define INDICATOR_CUSTOM_DBUS_ADDR "org.ayatana.indicator.custom"
+