diff options
author | Ted Gould <ted@gould.cx> | 2010-08-13 14:01:38 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-13 14:01:38 -0500 |
commit | a0023d1bfb43aeb51d7b259dfc23c32139c8b14c (patch) | |
tree | 4b9115520370637fb67423ff4cdc2b46415a868f /src | |
parent | c04a7cf4f33a7079be7718b72c5408f51f225ca3 (diff) | |
download | libayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.tar.gz libayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.tar.bz2 libayatana-appindicator-a0023d1bfb43aeb51d7b259dfc23c32139c8b14c.zip |
Responding to approver errors like they're approval.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 9 |
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); |