diff options
author | Ted Gould <ted@gould.cx> | 2010-01-08 11:20:32 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-08 11:20:32 -0600 |
commit | 96e4332ec96cd0b649d829857efb4d4f0268bb76 (patch) | |
tree | 535fb7809abc19be414318743bc55f586470d926 /src/application-service-watcher.c | |
parent | 5d97173ceb9192b8cf01c8f1ba0d761f2434817c (diff) | |
parent | a5753822cc80f3f579aa61801b54134b3baa8076 (diff) | |
download | ayatana-indicator-application-96e4332ec96cd0b649d829857efb4d4f0268bb76.tar.gz ayatana-indicator-application-96e4332ec96cd0b649d829857efb4d4f0268bb76.tar.bz2 ayatana-indicator-application-96e4332ec96cd0b649d829857efb4d4f0268bb76.zip |
Updating to trunk
Diffstat (limited to 'src/application-service-watcher.c')
-rw-r--r-- | src/application-service-watcher.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c index 984b9d4..1ad59d4 100644 --- a/src/application-service-watcher.c +++ b/src/application-service-watcher.c @@ -29,8 +29,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "application-service-watcher.h" #include "dbus-shared.h" -static gboolean _notification_watcher_server_register_service (ApplicationServiceWatcher * appwatcher, const gchar * service, DBusGMethodInvocation * method); -static gboolean _notification_watcher_server_registered_services (ApplicationServiceWatcher * appwatcher, GArray ** apps); +static gboolean _notification_watcher_server_register_status_notifier_item (ApplicationServiceWatcher * appwatcher, const gchar * service, DBusGMethodInvocation * method); +static gboolean _notification_watcher_server_registered_status_notifier_items (ApplicationServiceWatcher * appwatcher, GArray ** apps); static gboolean _notification_watcher_server_protocol_version (ApplicationServiceWatcher * appwatcher, char ** version); static gboolean _notification_watcher_server_register_notification_host (ApplicationServiceWatcher * appwatcher, const gchar * host); static gboolean _notification_watcher_server_is_notification_host_registered (ApplicationServiceWatcher * appwatcher, gboolean * haveHost); @@ -165,18 +165,26 @@ application_service_watcher_new (ApplicationServiceAppstore * appstore) } static gboolean -_notification_watcher_server_register_service (ApplicationServiceWatcher * appwatcher, const gchar * service, DBusGMethodInvocation * method) +_notification_watcher_server_register_status_notifier_item (ApplicationServiceWatcher * appwatcher, const gchar * service, DBusGMethodInvocation * method) { 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; } static gboolean -_notification_watcher_server_registered_services (ApplicationServiceWatcher * appwatcher, GArray ** apps) +_notification_watcher_server_registered_status_notifier_items (ApplicationServiceWatcher * appwatcher, GArray ** apps) { return FALSE; |