diff options
author | Ted Gould <ted@gould.cx> | 2010-02-10 08:47:34 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-10 08:47:34 -0600 |
commit | 907253f5ea802c1161bd718f8c9649c416e77bf2 (patch) | |
tree | ed1c6a824cdd9a8e013f52ba924f1d03c4de9a0c | |
parent | f5b69fe95891fd20bdce7100701799c3f997f1d7 (diff) | |
download | ayatana-indicator-application-907253f5ea802c1161bd718f8c9649c416e77bf2.tar.gz ayatana-indicator-application-907253f5ea802c1161bd718f8c9649c416e77bf2.tar.bz2 ayatana-indicator-application-907253f5ea802c1161bd718f8c9649c416e77bf2.zip |
Making the menu path also include the ID
-rw-r--r-- | src/libappindicator/app-indicator.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index ea823ff..b5512c5 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -115,9 +115,8 @@ enum { #define APP_INDICATOR_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), APP_INDICATOR_TYPE, AppIndicatorPrivate)) -/* Default Paths */ +/* Default Path */ #define DEFAULT_ITEM_PATH "/org/ayatana/NotificationItem" -#define DEFAULT_MENU_PATH "/org/ayatana/NotificationItem/Menu" /* More constants */ #define DEFAULT_FALLBACK_TIMER 100 /* in milliseconds */ @@ -1221,7 +1220,9 @@ setup_dbusmenu (AppIndicator *self) root); if (priv->menuservice == NULL) { - priv->menuservice = dbusmenu_server_new (DEFAULT_MENU_PATH); + gchar * path = g_strdup_printf(DEFAULT_ITEM_PATH "/%s/Menu", priv->id); + priv->menuservice = dbusmenu_server_new (path); + g_free(path); } dbusmenu_server_set_root (priv->menuservice, root); |