aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-12 14:59:01 -0600
committerTed Gould <ted@gould.cx>2010-03-12 14:59:01 -0600
commit05dbbb9a09bfa74c23683c8110bf0853635a635e (patch)
treeb445ae8a2035033ae24495960e8ca87813a8ad47 /src
parente504d1d019cf0af9b210d8150a5822f5e4878f4f (diff)
downloadayatana-indicator-session-05dbbb9a09bfa74c23683c8110bf0853635a635e.tar.gz
ayatana-indicator-session-05dbbb9a09bfa74c23683c8110bf0853635a635e.tar.bz2
ayatana-indicator-session-05dbbb9a09bfa74c23683c8110bf0853635a635e.zip
Add shared names for the dbus interfaces.
Diffstat (limited to 'src')
-rw-r--r--src/dbus-shared-names.h3
-rw-r--r--src/session-dbus.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-shared-names.h b/src/dbus-shared-names.h
index 253cba8..2c30b36 100644
--- a/src/dbus-shared-names.h
+++ b/src/dbus-shared-names.h
@@ -38,6 +38,9 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define INDICATOR_SESSION_DBUS_OBJECT "/org/ayatana/indicator/session/menu"
#define INDICATOR_SESSION_DBUS_VERSION 0
+#define INDICATOR_SESSION_SERVICE_DBUS_OBJECT "/org/ayatana/indicator/session/service"
+#define INDICATOR_SESSION_SERVICE_DBUS_IFACE "org.ayatana.indicator.session.service"
+
#define USER_ITEM_TYPE "x-canonical-user-item"
#define USER_ITEM_PROP_NAME "user-item-name"
#define USER_ITEM_PROP_LOGGED_IN "user-item-logged-in"
diff --git a/src/session-dbus.c b/src/session-dbus.c
index 60002d0..f656bb0 100644
--- a/src/session-dbus.c
+++ b/src/session-dbus.c
@@ -3,6 +3,7 @@
#endif
#include "session-dbus.h"
+#include "dbus-shared-names.h"
static gboolean _session_dbus_server_get_icon (SessionDbus * service, gchar ** icon, GError ** error);
@@ -58,7 +59,7 @@ static void
session_dbus_init (SessionDbus *self)
{
DBusGConnection * session = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
- dbus_g_connection_register_g_object(session, "/bob", G_OBJECT(self));
+ dbus_g_connection_register_g_object(session, INDICATOR_SESSION_SERVICE_DBUS_OBJECT, G_OBJECT(self));
SessionDbusPrivate * priv = SESSION_DBUS_GET_PRIVATE(self);