[glib] gpermission: fix async error returns
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gpermission: fix async error returns
- Date: Wed, 19 Aug 2015 19:46:04 +0000 (UTC)
commit 656494a7840cfb6c53c2cb9a27d82f58e2dd6f40
Author: Dan Winship <danw gnome org>
Date: Wed Aug 19 15:45:11 2015 -0400
gpermission: fix async error returns
a8eedd00 broke the error return values from
g_permission_acquire/release_async() on GSimplePermission. Fix that.
gio/gpermission.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gio/gpermission.c b/gio/gpermission.c
index ee5fc0c..6f3f2c2 100644
--- a/gio/gpermission.c
+++ b/gio/gpermission.c
@@ -418,8 +418,7 @@ acquire_or_release_finish (GPermission *permission,
GAsyncResult *result,
GError **error)
{
- g_async_result_legacy_propagate_error (result, error);
- return FALSE;
+ return g_task_propagate_boolean (G_TASK (result), error);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]