[evolution/wip/webkit-composer: 671/966] 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: 671/966] EMsgComposer: Disable async actions while composer is busy.
- Date: Wed, 23 Apr 2014 10:49:50 +0000 (UTC)
commit 687d09310b97d684d2d008bea4fcec5f1b0b5675
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 acdfd8f..88675bf 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -295,6 +295,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]