[evolution] EHTMLEditorView - Replace g_timeout_add with g_timeout_add_seconds



commit ec1da3c567e6ee88d73a9725d1a93d9daf6f4969
Author: Tomas Popela <tpopela redhat com>
Date:   Thu May 7 13:27:43 2015 +0200

    EHTMLEditorView - Replace g_timeout_add with g_timeout_add_seconds
    
    As per documentation the g_timeout_add_seconds function "allows for
    more optimizations and more efficient system power usage" over the
    g_timeout_add function.

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 39cc45f..edfde1d 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2780,7 +2780,7 @@ body_scroll_event_cb (WebKitDOMElement *element,
                g_source_remove (view->priv->spell_check_on_scroll_event_source_id);
 
        view->priv->spell_check_on_scroll_event_source_id =
-               g_timeout_add (1000, (GSourceFunc)force_spell_check_on_timeout, view);
+               g_timeout_add_seconds (1, (GSourceFunc)force_spell_check_on_timeout, view);
 }
 
 static void


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