[latexila: 3/3] DocumentView: rename set_*spell*_metadata() functions



commit 6c0c5f4f3616236cc9e1ee1cb8546635558331e4
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jan 7 15:47:39 2016 +0100

    DocumentView: rename set_*spell*_metadata() functions
    
    One would expect to have a parameter for a set() function, but it's not
    the case.

 src/document_view.vala     |    4 ++--
 src/main_window_tools.vala |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/document_view.vala b/src/document_view.vala
index d4e70a4..101959f 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -297,7 +297,7 @@ public class DocumentView : Gtk.SourceView
         dialog.destroy ();
     }
 
-    public void set_spell_language_metadata ()
+    public void save_spell_language_metadata ()
     {
         Gspell.Checker? spell_checker = Gspell.text_buffer_get_spell_checker (buffer);
         return_if_fail (spell_checker != null);
@@ -311,7 +311,7 @@ public class DocumentView : Gtk.SourceView
             doc.set_metadata (METADATA_ATTRIBUTE_SPELL_LANGUAGE, null);
     }
 
-    public void set_inline_spell_metadata ()
+    public void save_inline_spell_metadata ()
     {
         Document doc = get_buffer () as Document;
 
diff --git a/src/main_window_tools.vala b/src/main_window_tools.vala
index 4c717ec..d6f5a12 100644
--- a/src/main_window_tools.vala
+++ b/src/main_window_tools.vala
@@ -116,7 +116,7 @@ public class MainWindowTools
         // If the spell checker is used, save the language since it's probably
         // correct. If it isn't correct, the language will be changed and the
         // metadata will also be saved.
-        view.set_spell_language_metadata ();
+        view.save_spell_language_metadata ();
     }
 
     public void on_set_language (Gtk.Action action)
@@ -125,7 +125,7 @@ public class MainWindowTools
         return_if_fail (view != null);
 
         view.launch_spell_language_chooser_dialog ();
-        view.set_spell_language_metadata ();
+        view.save_spell_language_metadata ();
     }
 
     public void on_inline_spell_checker (Gtk.Action action)
@@ -147,8 +147,8 @@ public class MainWindowTools
 
             update_inline_spell_checker_action_state ();
 
-            view.set_inline_spell_metadata ();
-            view.set_spell_language_metadata ();
+            view.save_inline_spell_metadata ();
+            view.save_spell_language_metadata ();
         }
     }
 }


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