[gspell/wip/language: 3/3] language: rename to_key() -> get_code()



commit be1af2e3bf22da6172519bb18d421acb46f41fb3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 27 18:08:30 2015 +0100

    language: rename to_key() -> get_code()

 docs/reference/gspell-1.0-sections.txt |    2 +-
 gspell/gspell-checker.c                |    2 +-
 gspell/gspell-language.c               |    2 +-
 gspell/gspell-language.h               |    4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/gspell-1.0-sections.txt b/docs/reference/gspell-1.0-sections.txt
index 02ec567..3d34a3b 100644
--- a/docs/reference/gspell-1.0-sections.txt
+++ b/docs/reference/gspell-1.0-sections.txt
@@ -47,8 +47,8 @@ GSPELL_TYPE_INLINE_CHECKER_GTV
 GspellLanguage
 gspell_language_get_available
 gspell_language_lookup
+gspell_language_get_code
 gspell_language_to_string
-gspell_language_to_key
 gspell_language_copy
 gspell_language_free
 <SUBSECTION Standard>
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index 624bc8e..fc25974 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -348,7 +348,7 @@ init_dictionary (GspellChecker *checker)
        {
                const gchar *key;
 
-               key = gspell_language_to_key (priv->active_lang);
+               key = gspell_language_get_code (priv->active_lang);
 
                priv->dict = enchant_broker_request_dict (priv->broker, key);
        }
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index 03d46ae..abe8688 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -489,7 +489,7 @@ gspell_language_to_string (const GspellLanguage *lang)
 }
 
 const gchar *
-gspell_language_to_key (const GspellLanguage *lang)
+gspell_language_get_code (const GspellLanguage *lang)
 {
        g_return_val_if_fail (lang != NULL, NULL);
 
diff --git a/gspell/gspell-language.h b/gspell/gspell-language.h
index 2118719..2c11d0e 100644
--- a/gspell/gspell-language.h
+++ b/gspell/gspell-language.h
@@ -41,9 +41,9 @@ const GSList *        gspell_language_get_available           (void);
 const GspellLanguage *
                gspell_language_lookup                  (const gchar *key);
 
-const gchar *  gspell_language_to_string               (const GspellLanguage *lang);
+const gchar *  gspell_language_get_code                (const GspellLanguage *lang);
 
-const gchar *  gspell_language_to_key                  (const GspellLanguage *lang);
+const gchar *  gspell_language_to_string               (const GspellLanguage *lang);
 
 /* These should not be used, they are just to make GObject Introspection
  * bindings happy.


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