diff options
author | Ted Gould <ted@gould.cx> | 2010-01-11 23:47:03 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-11 23:47:03 -0600 |
commit | d104014dddb2cfcde197b6c70ca3765a624ba23f (patch) | |
tree | e199c6691a1ab18d706f22dc12a59816bccc821b /src/libappindicator | |
parent | e04e32f8be96d34f2986684a00d19a6bdd9486ac (diff) | |
parent | 73afc353f91d9fe19cda2bf97fbb73fa095e9484 (diff) | |
download | ayatana-indicator-application-d104014dddb2cfcde197b6c70ca3765a624ba23f.tar.gz ayatana-indicator-application-d104014dddb2cfcde197b6c70ca3765a624ba23f.tar.bz2 ayatana-indicator-application-d104014dddb2cfcde197b6c70ca3765a624ba23f.zip |
Updating path names to have more reasonable defaults.
Diffstat (limited to 'src/libappindicator')
-rw-r--r-- | src/libappindicator/app-indicator.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index f115068..0767734 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -111,6 +111,10 @@ enum { #define APP_INDICATOR_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), APP_INDICATOR_TYPE, AppIndicatorPrivate)) +/* Default Paths */ +#define DEFAULT_ITEM_PATH "/org/ayatana/NotificationItem" +#define DEFAULT_MENU_PATH "/org/ayatana/NotificationItem/Menu" + /* Boiler plate */ static void app_indicator_class_init (AppIndicatorClass *klass); static void app_indicator_init (AppIndicator *self); @@ -305,7 +309,7 @@ app_indicator_init (AppIndicator *self) } dbus_g_connection_register_g_object(priv->connection, - "/need/a/path", + DEFAULT_ITEM_PATH, G_OBJECT(self)); self->priv = priv; @@ -541,7 +545,7 @@ check_connect (AppIndicator *self) return; } - org_freedesktop_StatusNotifierWatcher_register_status_notifier_item_async(priv->watcher_proxy, "/need/a/path", register_service_cb, self); + org_freedesktop_StatusNotifierWatcher_register_status_notifier_item_async(priv->watcher_proxy, DEFAULT_ITEM_PATH, register_service_cb, self); return; } @@ -870,7 +874,7 @@ setup_dbusmenu (AppIndicator *self) root); if (priv->menuservice == NULL) { - priv->menuservice = dbusmenu_server_new ("/need/a/menu/path"); + priv->menuservice = dbusmenu_server_new (DEFAULT_MENU_PATH); } dbusmenu_server_set_root (priv->menuservice, root); |