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



commit 0f467c0e40b525fe71c3851f2c0f30ce0ad28d47
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]