aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-13 14:01:38 -0500
committerTed Gould <ted@gould.cx>2010-08-13 14:01:38 -0500
commita0023d1bfb43aeb51d7b259dfc23c32139c8b14c (patch)
tree4b9115520370637fb67423ff4cdc2b46415a868f
parentc04a7cf4f33a7079be7718b72c5408f51f225ca3 (diff)
downloadlibayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.tar.gz
libayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.tar.bz2
libayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.zip
Responding to approver errors like they're approval.
-rw-r--r--src/application-service-appstore.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 771f2af..056f0e1 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -1083,10 +1083,15 @@ approver_free (gpointer papprover, gpointer user_data)
static void
approver_request_cb (DBusGProxy *proxy, gboolean OUT_approved, GError *error, gpointer userdata)
{
- g_debug("Approver responded: %s", OUT_approved ? "approve" : "rejected");
+ if (error == NULL) {
+ g_debug("Approver responded: %s", OUT_approved ? "approve" : "rejected");
+ } else {
+ g_debug("Approver responded error: %s", error->message);
+ }
+
Application * app = (Application *)userdata;
- if (OUT_approved) {
+ if (OUT_approved || error != NULL) {
app->approved_by = g_list_prepend(app->approved_by, proxy);
} else {
app->approved_by = g_list_remove(app->approved_by, proxy);