[evolution/gnome-3-16] EHTMLEditorView - Replace g_timeout_add with g_timeout_add_seconds
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-16] EHTMLEditorView - Replace g_timeout_add with g_timeout_add_seconds
- Date: Thu, 7 May 2015 11:32:16 +0000 (UTC)
commit 93eb42415eab466660d2ef7feb9c2baf263de7e3
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 a45987a..0a0e17d 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]