From f7e660f7f5a1133cc2a3bf341a2301f38160995a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 7 Jan 2010 13:37:56 -0600 Subject: Cleaning up signal handlers. --- src/application-service-appstore.c | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index e832a71..dfd932e 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -245,9 +245,38 @@ application_removed_cb (DBusGProxy * proxy, gpointer userdata) return; } -void new_icon (void) { } -void new_aicon (void) { } -void new_status (void) { } +/* Called when the Notification Item signals that it + has a new icon. */ +static void +new_icon (DBusGProxy * proxy, gpointer data) +{ + Application * app = (Application *)data; + if (!app->validated) return; + + return; +} + +/* Called when the Notification Item signals that it + has a new attention icon. */ +static void +new_aicon (DBusGProxy * proxy, gpointer data) +{ + Application * app = (Application *)data; + if (!app->validated) return; + + return; +} + +/* Called when the Notification Item signals that it + has a new status. */ +static void +new_status (DBusGProxy * proxy, const gchar * status, gpointer data) +{ + Application * app = (Application *)data; + if (!app->validated) return; + + return; +} /* Adding a new NotificationItem object from DBus in to the appstore. First, we need to get the information on it -- cgit v1.2.3