aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-watcher.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-09 15:20:13 -0500
committerTed Gould <ted@gould.cx>2010-07-09 15:20:13 -0500
commit298644534b236239d0c30d63456bae07a31c8d5e (patch)
tree5e51b2525092088e1f825533df492a4a6f8003c4 /src/application-service-watcher.c
parentd7c73248a5dccdb3929ed959f027366028ed757e (diff)
downloadayatana-indicator-application-298644534b236239d0c30d63456bae07a31c8d5e.tar.gz
ayatana-indicator-application-298644534b236239d0c30d63456bae07a31c8d5e.tar.bz2
ayatana-indicator-application-298644534b236239d0c30d63456bae07a31c8d5e.zip
For DBus to real objects, the signal shall travel.
Diffstat (limited to 'src/application-service-watcher.c')
-rw-r--r--src/application-service-watcher.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c
index 844585d..4fe3bc7 100644
--- a/src/application-service-watcher.c
+++ b/src/application-service-watcher.c
@@ -34,7 +34,7 @@ static gboolean _notification_watcher_server_register_status_notifier_item (Appl
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_register_notification_approver (ApplicationServiceWatcher * appwatcher, const GValue * path, const GArray * categories, DBusGMethodInvocation * method);
+static gboolean _notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method);
static gboolean _notification_watcher_server_is_notification_host_registered (ApplicationServiceWatcher * appwatcher, gboolean * haveHost);
static void get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data);
@@ -252,8 +252,14 @@ get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data)
}
static gboolean
-_notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const GValue * path, const GArray * categories, DBusGMethodInvocation * method)
+_notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method)
{
+ ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher);
- return FALSE;
+ application_service_appstore_approver_add(priv->appstore,
+ dbus_g_method_get_sender(method),
+ path);
+
+ dbus_g_method_return(method, G_TYPE_NONE);
+ return TRUE;
}