[evolution] Bug 772150 - Can't add or edit email signatures
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 772150 - Can't add or edit email signatures
- Date: Wed, 12 Oct 2016 17:37:50 +0000 (UTC)
commit 8726851cb8990af46e692634d17596b9cd5d0b33
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 12 19:38:34 2016 +0200
Bug 772150 - Can't add or edit email signatures
src/e-util/e-misc-utils.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/e-util/e-misc-utils.c b/src/e-util/e-misc-utils.c
index 4821680..f856a45 100644
--- a/src/e-util/e-misc-utils.c
+++ b/src/e-util/e-misc-utils.c
@@ -3796,6 +3796,7 @@ e_util_invoke_g_dbus_proxy_call_sync_wrapper_full (GDBusProxy *dbus_proxy,
{
GAsyncResult *async_result = NULL;
GVariant *var_result;
+ GMainContext *main_context;
g_return_val_if_fail (G_IS_DBUS_PROXY (dbus_proxy), NULL);
g_return_val_if_fail (method_name != NULL, NULL);
@@ -3806,8 +3807,10 @@ e_util_invoke_g_dbus_proxy_call_sync_wrapper_full (GDBusProxy *dbus_proxy,
dbus_proxy, method_name, parameters, flags, timeout_msec, cancellable,
sync_wrapper_result_callback, &async_result);
+ main_context = g_main_context_get_thread_default ();
+
while (!async_result) {
- g_main_context_iteration (NULL, TRUE);
+ g_main_context_iteration (main_context, TRUE);
}
var_result = g_dbus_proxy_call_finish (dbus_proxy, async_result, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]