[latexila/wip/gspell-update: 2/2] DocumentView: rename setup_inline_spell_checker()



commit cac052329bf7de8f25c50bcd00de1d79c32c8eaf
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jan 6 15:24:47 2016 +0100

    DocumentView: rename setup_inline_spell_checker()
    
    Since the gspell function is now "inline_spell_checking", since the
    object is hidden from the API.

 src/document_view.vala     |    8 ++++----
 src/main_window_tools.vala |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/document_view.vala b/src/document_view.vala
index 6f1508c..d4b815a 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -226,14 +226,14 @@ public class DocumentView : Gtk.SourceView
         Gspell.Checker spell_checker = new Gspell.Checker (get_spell_language ());
         Gspell.text_buffer_set_spell_checker (this.buffer, spell_checker);
 
-        setup_inline_spell_checker ();
+        setup_inline_spell_checking ();
 
         Document doc = get_buffer () as Document;
 
         doc.notify["location"].connect (() =>
         {
             spell_checker.set_language (get_spell_language ());
-            setup_inline_spell_checker ();
+            setup_inline_spell_checking ();
         });
 
         _editor_settings.changed["spell-checking-language"].connect (() =>
@@ -243,7 +243,7 @@ public class DocumentView : Gtk.SourceView
 
         _editor_settings.changed["highlight-misspelled-words"].connect (() =>
         {
-            setup_inline_spell_checker ();
+            setup_inline_spell_checking ();
         });
     }
 
@@ -261,7 +261,7 @@ public class DocumentView : Gtk.SourceView
         return Gspell.Language.lookup (lang_code);
     }
 
-    public void setup_inline_spell_checker ()
+    public void setup_inline_spell_checking ()
     {
         Document doc = get_buffer () as Document;
 
diff --git a/src/main_window_tools.vala b/src/main_window_tools.vala
index 4617e1a..3b72d96 100644
--- a/src/main_window_tools.vala
+++ b/src/main_window_tools.vala
@@ -66,7 +66,7 @@ public class MainWindowTools
         {
             // Ensure that the active_view is updated first.
             if (_main_window.active_view != null)
-                _main_window.active_view.setup_inline_spell_checker ();
+                _main_window.active_view.setup_inline_spell_checking ();
 
             update_inline_spell_checker_action_state ();
         });


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