aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-watcher.c
diff options
context:
space:
mode:
authorAurelien Gateau <aurelien.gateau@canonical.com>2010-01-08 16:34:59 +0100
committerAurelien Gateau <aurelien.gateau@canonical.com>2010-01-08 16:34:59 +0100
commit5f86c7263748a2e95c3f9101a5197ef924b69ec9 (patch)
tree47a439a4a11dfb35419482f730224157679ed1ed /src/application-service-watcher.c
parent17476bdd4ceaf0b3ecc279a555ac82838e2d8016 (diff)
parent0c8cf85f9e6aa2120a7616f0aacb8f3993894687 (diff)
downloadlibayatana-appindicator-5f86c7263748a2e95c3f9101a5197ef924b69ec9.tar.gz
libayatana-appindicator-5f86c7263748a2e95c3f9101a5197ef924b69ec9.tar.bz2
libayatana-appindicator-5f86c7263748a2e95c3f9101a5197ef924b69ec9.zip
Merged lp:~ted/indicator-application/fdo
Diffstat (limited to 'src/application-service-watcher.c')
-rw-r--r--src/application-service-watcher.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c
index 81fae36..1ad59d4 100644
--- a/src/application-service-watcher.c
+++ b/src/application-service-watcher.c
@@ -169,7 +169,15 @@ _notification_watcher_server_register_status_notifier_item (ApplicationServiceWa
{
ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher);
- application_service_appstore_application_add(priv->appstore, dbus_g_method_get_sender(method), service);
+ if (service[0] == '/') {
+ application_service_appstore_application_add(priv->appstore,
+ dbus_g_method_get_sender(method),
+ service);
+ } else {
+ application_service_appstore_application_add(priv->appstore,
+ service,
+ NOTIFICATION_ITEM_DEFAULT_OBJ);
+ }
dbus_g_method_return(method, G_TYPE_NONE);
return TRUE;