diff options
author | Aurelien Gateau <aurelien.gateau@canonical.com> | 2009-12-23 16:48:54 +0100 |
---|---|---|
committer | Aurelien Gateau <aurelien.gateau@canonical.com> | 2009-12-23 16:48:54 +0100 |
commit | 95b5ea90de66f465398fbdf9779e342395ea327a (patch) | |
tree | ff658aaa75537ce8e5a4b9fbe8d042598f95444c /src/libappindicator/app-indicator.c | |
parent | 312dadc3611b4afb7249ebc439390d3906a1683d (diff) | |
download | libayatana-appindicator-95b5ea90de66f465398fbdf9779e342395ea327a.tar.gz libayatana-appindicator-95b5ea90de66f465398fbdf9779e342395ea327a.tar.bz2 libayatana-appindicator-95b5ea90de66f465398fbdf9779e342395ea327a.zip |
Make it work on KDE
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r-- | src/libappindicator/app-indicator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index bb68cb2..4baf4ef 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_kde_StatusNotifierWatcher_register_status_notifier_item_async(priv->watcher_proxy, name, register_service_cb, self); return; } |