[evolution/webkit-composer: 167/181] EMsgComposer: Disable async actions while composer is busy.



commit 9998be74fa6cf0539667157e340f7b5df63b577a
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 0549b30..8735b35 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -389,6 +389,16 @@ e_composer_private_constructed (EMsgComposer *composer)
 			G_BINDING_BIDIRECTIONAL |
 			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);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]