[latexila/wip/gspell] spell: rename gsetting for the inline checker



commit 6e4ed880fa47d421f3e0efc2e53b2b4da8f0f877
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Sep 15 13:07:41 2015 +0200

    spell: rename gsetting for the inline checker
    
    There will be another gsetting for the default language, so
    "spell-checking" is not precise enough.

 data/org.gnome.latexila.gschema.xml.in |    4 ++--
 src/document_view.vala                 |    4 ++--
 src/main_window_tools.vala             |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/org.gnome.latexila.gschema.xml.in b/data/org.gnome.latexila.gschema.xml.in
index 81ed9e4..068e130 100644
--- a/data/org.gnome.latexila.gschema.xml.in
+++ b/data/org.gnome.latexila.gschema.xml.in
@@ -79,9 +79,9 @@
       <summary>Highlight Matching Brackets</summary>
       <description>Whether LaTeXila should highlight matching brackets.</description>
     </key>
-    <key name="spell-checking" type="b">
+    <key name="highlight-misspelled-words" type="b">
       <default>false</default>
-      <summary>Spell checking</summary>
+      <summary>Highlight Misspelled Words</summary>
     </key>
   </schema>
 
diff --git a/src/document_view.vala b/src/document_view.vala
index 2e901f5..e8eb0f0 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -82,7 +82,7 @@ public class DocumentView : Gtk.SourceView
         // spell checking
         _spell_checker = new Gspell.Checker (null);
 
-        if (_editor_settings.get_boolean ("spell-checking"))
+        if (_editor_settings.get_boolean ("highlight-misspelled-words"))
             activate_inline_spell_checker ();
 
         // forward search
@@ -249,7 +249,7 @@ public class DocumentView : Gtk.SourceView
 
         dialog.destroy ();
 
-        _editor_settings.set_boolean ("spell-checking", false);
+        _editor_settings.set_boolean ("highlight-misspelled-words", false);
     }
 
     public void deactivate_inline_spell_checker ()
diff --git a/src/main_window_tools.vala b/src/main_window_tools.vala
index 6b96191..f74db72 100644
--- a/src/main_window_tools.vala
+++ b/src/main_window_tools.vala
@@ -60,8 +60,8 @@ public class MainWindowTools
         GLib.Settings editor_settings =
             new GLib.Settings ("org.gnome.latexila.preferences.editor");
 
-        editor_settings.bind ("spell-checking", spell_checking_action, "active",
-            SettingsBindFlags.DEFAULT);
+        editor_settings.bind ("highlight-misspelled-words", spell_checking_action,
+            "active", SettingsBindFlags.DEFAULT);
     }
 
     /* Sensitivity */


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