[evolution/wip/tpopela/freeze-fixes] EHTMLEditorView - Perform spell check on scroll just when inline spelling is enabled



commit e15f2d408938bacc27b68a2d2b7c35fc50ea1753
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Mar 19 13:24:28 2015 +0100

    EHTMLEditorView - Perform spell check on scroll just when inline spelling is enabled

 e-util/e-html-editor-view.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 56f86f0..dde77b3 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2630,9 +2630,12 @@ force_spell_check_on_timeout (EHTMLEditorView *view)
 
 static void
 body_scroll_event_cb (WebKitDOMElement *element,
-                        WebKitDOMEvent *event,
-                        EHTMLEditorView *view)
+                      WebKitDOMEvent *event,
+                      EHTMLEditorView *view)
 {
+       if (!view->priv->inline_spelling)
+               return;
+
        if (view->priv->spell_check_on_scroll_event_source_id > 0) {
                g_source_remove (view->priv->spell_check_on_scroll_event_source_id);
        }


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