aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator
diff options
context:
space:
mode:
authorAurelien Gateau <aurelien.gateau@canonical.com>2010-01-07 13:29:50 +0100
committerAurelien Gateau <aurelien.gateau@canonical.com>2010-01-07 13:29:50 +0100
commit0aaa6a25ab78a044e1b004a6943d2b6f07598c17 (patch)
tree0003020793783b478f58ad6f56ec46e53f68a016 /src/libappindicator
parentdd2ed951b8aeb16671bebd2ea104953252ab54a5 (diff)
downloadlibayatana-appindicator-0aaa6a25ab78a044e1b004a6943d2b6f07598c17.tar.gz
libayatana-appindicator-0aaa6a25ab78a044e1b004a6943d2b6f07598c17.tar.bz2
libayatana-appindicator-0aaa6a25ab78a044e1b004a6943d2b6f07598c17.zip
Use org.freedesktop namespace
Diffstat (limited to 'src/libappindicator')
-rw-r--r--src/libappindicator/app-indicator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index bb68cb2..b4a4ed6 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -32,6 +32,7 @@ License version 3 and version 2.1 along with this program. If not, see
#endif
#include <dbus/dbus-glib.h>
+#include <dbus/dbus-glib-lowlevel.h>
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-gtk/client.h>
@@ -293,7 +294,7 @@ app_indicator_init (AppIndicator *self)
}
dbus_g_connection_register_g_object(priv->connection,
- "/need/a/path",
+ "/StatusNotifierItem",
G_OBJECT(self));
self->priv = priv;
@@ -513,7 +514,8 @@ check_connect (AppIndicator *self)
return;
}
- org_ayatana_indicator_application_NotificationWatcher_register_service_async(priv->watcher_proxy, "/need/a/path", register_service_cb, self);
+ const char * name = dbus_bus_get_unique_name(dbus_g_connection_get_connection(priv->connection));
+ org_freedesktop_StatusNotifierWatcher_register_status_notifier_item_async(priv->watcher_proxy, name, register_service_cb, self);
return;
}