[evolution/wip/webkit-composer] EComposerPrivate: Block selection-changed signal when adjusting caret position after signature inser



commit a9d1c9ecbee3ed7f99867292ada8d141ba3275f3
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Mar 10 16:20:08 2014 +0100

    EComposerPrivate: Block selection-changed signal when adjusting caret position after signature insertion

 composer/e-composer-private.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 035b0f7..64e1500 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -873,6 +873,8 @@ composer_move_caret (EMsgComposer *composer)
                return;
        }
 
+       e_editor_selection_block_selection_changed (editor_selection);
+
        /* When the new message is written from the beginning - note it into body */
        if (composer->priv->is_from_new_message) {
                webkit_dom_element_set_attribute (
@@ -988,6 +990,8 @@ composer_move_caret (EMsgComposer *composer)
 
        webkit_dom_dom_selection_remove_all_ranges (dom_selection);
        webkit_dom_dom_selection_add_range (dom_selection, new_range);
+
+       e_editor_selection_unblock_selection_changed (editor_selection);
 }
 
 static void


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