[evolution/wip/webkit-composer: 228/372] EMsgComposer: Disable async actions while composer is busy.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 228/372] EMsgComposer: Disable async actions while composer is busy.
- Date: Thu, 6 Feb 2014 11:42:40 +0000 (UTC)
commit 22f250c6555c1362091164bcff3800739aad49bc
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Feb 8 07:57:47 2013 -0500
EMsgComposer: Disable async actions while composer is busy.
Disable actions that start asynchronous activities while an asynchronous
activity is in progress. We enforce this with a simple inverted binding
to EEditor's "busy" property.
composer/e-composer-private.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 2b3a205..8950add 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -301,6 +301,16 @@ e_composer_private_constructed (EMsgComposer *composer)
G_BINDING_SYNC_CREATE);
}
+ /* Disable actions that start asynchronous activities while an
+ * asynchronous activity is in progress. We enforce this with
+ * a simple inverted binding to EEditor's "busy" property. */
+
+ g_object_bind_property (
+ editor, "busy",
+ priv->async_actions, "sensitive",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
+
g_object_unref (settings);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]