diff options
author | Ted Gould <ted@gould.cx> | 2010-08-11 20:26:08 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-11 20:26:08 -0500 |
commit | fbdf4bfec6dad26c7b3ffdedd9f1616abf20f196 (patch) | |
tree | 1892371c731cf4e7e083d30c37b10e06cb9f7143 | |
parent | e8b76a6a10b53e0cc4d34895fb396a5bc9ab4c54 (diff) | |
download | libayatana-appindicator-fbdf4bfec6dad26c7b3ffdedd9f1616abf20f196.tar.gz libayatana-appindicator-fbdf4bfec6dad26c7b3ffdedd9f1616abf20f196.tar.bz2 libayatana-appindicator-fbdf4bfec6dad26c7b3ffdedd9f1616abf20f196.zip |
Managing the list with the approver returns.
-rw-r--r-- | src/application-service-appstore.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 9c34a79..b2c18d4 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -949,6 +949,15 @@ static void approver_request_cb (DBusGProxy *proxy, gboolean OUT_approved, GError *error, gpointer userdata) { g_debug("Approver responded: %s", OUT_approved ? "approve" : "rejected"); + Application * app = (Application *)userdata; + + if (OUT_approved) { + app->approved_by = g_list_prepend(app->approved_by, proxy); + } else { + app->approved_by = g_list_remove(app->approved_by, proxy); + } + + /* TODO: Apply status */ return; } |