[evolution-ews] Use g_simple_async_result_set_from_error instead of _take_error so that its compatible with glib 2.2
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Use g_simple_async_result_set_from_error instead of _take_error so that its compatible with glib 2.2
- Date: Wed, 22 Jun 2011 07:55:19 +0000 (UTC)
commit 6bab64548decb9eaef36a3a6a8da388e5bd8fac7
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed Jun 22 13:24:08 2011 +0530
Use g_simple_async_result_set_from_error instead of _take_error so
that its compatible with glib 2.26.
src/server/e-ews-connection.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index a28c336..6153569 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1286,8 +1286,11 @@ oal_response_cb (SoupSession *session, SoupMessage *msg, gpointer user_data)
g_simple_async_result_set_op_res_gpointer (data->simple, oals, NULL);
exit:
- if (error)
- g_simple_async_result_take_error (data->simple, error);
+ if (error) {
+ g_simple_async_result_set_from_error (data->simple, error);
+ g_clear_error (&error);
+ }
+
g_simple_async_result_complete_in_idle (data->simple);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]