[evolution/wip/webkit2] EEditorDOMFunctions - Unblock the selection-changed signal when spell checking fails



commit f1ff4881a12dc4d33cb1dc8f929d52efa3a884b5
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jul 11 13:09:00 2016 +0200

    EEditorDOMFunctions - Unblock the selection-changed signal when spell checking fails

 .../web-extension/e-editor-dom-functions.c         |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c 
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 0de1149..db8b36f 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -882,7 +882,7 @@ e_editor_dom_force_spell_check_in_viewport (EEditorPage *editor_page)
        /* We have to add 10 px offset as otherwise just the HTML element will be returned */
        actual = webkit_dom_document_caret_range_from_point (document, 10, 10);
        if (!actual)
-               return;
+               goto out;
 
        /* Append some text on the end of the body */
        text = webkit_dom_document_create_text_node (document, "-x-evo-end");
@@ -921,6 +921,7 @@ e_editor_dom_force_spell_check_in_viewport (EEditorPage *editor_page)
        /* Remove the text that we inserted on the end of the body */
        remove_node (WEBKIT_DOM_NODE (text));
 
+ out:
        /* Unblock the callbacks */
        e_editor_page_unblock_selection_changed (editor_page);
 


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