diff options
author | Aurelien Gateau <aurelien.gateau@canonical.com> | 2010-01-07 18:10:44 +0100 |
---|---|---|
committer | Aurelien Gateau <aurelien.gateau@canonical.com> | 2010-01-07 18:10:44 +0100 |
commit | 17476bdd4ceaf0b3ecc279a555ac82838e2d8016 (patch) | |
tree | c9df0bfe2a900a533d6396588d02440c4a93921b /src/libappindicator | |
parent | 0aaa6a25ab78a044e1b004a6943d2b6f07598c17 (diff) | |
download | ayatana-indicator-application-17476bdd4ceaf0b3ecc279a555ac82838e2d8016.tar.gz ayatana-indicator-application-17476bdd4ceaf0b3ecc279a555ac82838e2d8016.tar.bz2 ayatana-indicator-application-17476bdd4ceaf0b3ecc279a555ac82838e2d8016.zip |
Revert part of previous revision: pass the path, not the service name to register_status_item
Diffstat (limited to 'src/libappindicator')
-rw-r--r-- | src/libappindicator/app-indicator.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index b4a4ed6..52c5f46 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -32,7 +32,6 @@ 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> @@ -294,7 +293,7 @@ app_indicator_init (AppIndicator *self) } dbus_g_connection_register_g_object(priv->connection, - "/StatusNotifierItem", + "/need/a/path", G_OBJECT(self)); self->priv = priv; @@ -514,8 +513,7 @@ check_connect (AppIndicator *self) return; } - 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); + org_freedesktop_StatusNotifierWatcher_register_status_notifier_item_async(priv->watcher_proxy, "/need/a/path", register_service_cb, self); return; } |