[evolution] Bug 773864 - Flashing format combo value on mouse-wheel scroll
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 773864 - Flashing format combo value on mouse-wheel scroll
- Date: Fri, 4 Nov 2016 07:59:31 +0000 (UTC)
commit 28f1790ab87c1cfbcff09235bc634c7866dbb55c
Author: Tomas Popela <tpopela redhat com>
Date: Fri Nov 4 08:56:21 2016 +0100
Bug 773864 - Flashing format combo value on mouse-wheel scroll
Restore the selection position on the end of the spell-check refresh
before unblocking the SelectionChanged callbacks as otherwise the last
selection from doing the refresh will be used as well.
.../web-extension/e-editor-dom-functions.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index a54f7cb..56558e7 100644
--- a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -734,10 +734,9 @@ e_editor_dom_force_spell_check_for_current_paragraph (EEditorPage *editor_page)
/* Remove the text that we inserted on the end of the paragraph */
remove_node (WEBKIT_DOM_NODE (text));
+ e_editor_dom_selection_restore (editor_page);
/* Unblock the callbacks */
e_editor_page_unblock_selection_changed (editor_page);
-
- e_editor_dom_selection_restore (editor_page);
}
static void
@@ -824,10 +823,9 @@ refresh_spell_check (EEditorPage *editor_page,
/* Remove the text that we inserted on the end of the body */
remove_node (WEBKIT_DOM_NODE (text));
+ e_editor_dom_selection_restore (editor_page);
/* Unblock the callbacks */
e_editor_page_unblock_selection_changed (editor_page);
-
- e_editor_dom_selection_restore (editor_page);
}
void
@@ -912,10 +910,9 @@ e_editor_dom_force_spell_check_in_viewport (EEditorPage *editor_page)
remove_node (WEBKIT_DOM_NODE (text));
out:
+ e_editor_dom_selection_restore (editor_page);
/* Unblock the callbacks */
e_editor_page_unblock_selection_changed (editor_page);
-
- e_editor_dom_selection_restore (editor_page);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]