[evolution/webkit-composer: 162/231] EMsgComposer: Disable async actions while composer is busy.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 162/231] EMsgComposer: Disable async actions while composer is busy.
- Date: Fri, 13 Sep 2013 14:19:36 +0000 (UTC)
commit b277ca7a532ad465f004afec6f98ffa38923c0f8
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 64c13e4..122cc63 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -302,6 +302,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]