[latexila/wip/gspell-update: 2/2] spell: use GspellInlineCheckerText
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/gspell-update: 2/2] spell: use GspellInlineCheckerText
- Date: Thu, 7 Jan 2016 13:13:43 +0000 (UTC)
commit 673c660719bd32db81d713995cf018a0fbdb2604
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jan 7 14:12:38 2016 +0100
spell: use GspellInlineCheckerText
src/document_view.vala | 2 +-
src/main_window_tools.vala | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/document_view.vala b/src/document_view.vala
index 6f1508c..c6ee5af 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -1,7 +1,7 @@
/*
* This file is part of LaTeXila.
*
- * Copyright © 2010-2011 Sébastien Wilmet
+ * Copyright © 2010-2016 Sébastien Wilmet
*
* LaTeXila is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main_window_tools.vala b/src/main_window_tools.vala
index 4617e1a..e5f511b 100644
--- a/src/main_window_tools.vala
+++ b/src/main_window_tools.vala
@@ -80,8 +80,9 @@ public class MainWindowTools
ToggleAction spell_checking_action =
_action_group.get_action ("ToolsInlineSpellChecker") as ToggleAction;
- spell_checking_action.active =
- _main_window.active_view.highlight_misspelled_words;
+ Gspell.InlineCheckerText inline_checker =
+ Gspell.text_view_get_inline_checker (_main_window.active_view);
+ spell_checking_action.active = inline_checker.enabled;
}
/* Sensitivity */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]