[gspell/wip/language: 1/3] language: rename from_key() -> lookup()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/language: 1/3] language: rename from_key() -> lookup()
- Date: Fri, 27 Nov 2015 17:09:08 +0000 (UTC)
commit 6564acd74ff535186153eb139aa9c0f24501aae1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 27 17:55:19 2015 +0100
language: rename from_key() -> lookup()
To follow the same API as GtkhtmlSpellLanguage.
docs/reference/gspell-1.0-sections.txt | 2 +-
gspell/gspell-checker.c | 6 +++---
gspell/gspell-language.c | 2 +-
gspell/gspell-language.h | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/gspell-1.0-sections.txt b/docs/reference/gspell-1.0-sections.txt
index b29a963..e9f0e70 100644
--- a/docs/reference/gspell-1.0-sections.txt
+++ b/docs/reference/gspell-1.0-sections.txt
@@ -47,7 +47,7 @@ GSPELL_TYPE_INLINE_CHECKER_GTV
GspellLanguage
gspell_language_to_string
gspell_language_to_key
-gspell_language_from_key
+gspell_language_lookup
gspell_checker_get_available_languages
gspell_language_copy
gspell_language_free
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index 0e40d4f..fc4e3f4 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -285,7 +285,7 @@ get_default_language (void)
for (i = 0; lang_names[i] != NULL; i++)
{
- lang = gspell_language_from_key (lang_names[i]);
+ lang = gspell_language_lookup (lang_names[i]);
if (lang != NULL)
{
@@ -300,7 +300,7 @@ get_default_language (void)
if (key != NULL)
{
- lang = gspell_language_from_key (key);
+ lang = gspell_language_lookup (key);
g_free (key);
return lang;
}
@@ -308,7 +308,7 @@ get_default_language (void)
#endif
/* Try English */
- lang = gspell_language_from_key ("en_US");
+ lang = gspell_language_lookup ("en_US");
if (lang != NULL)
{
return lang;
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index e027d7f..b129b77 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -497,7 +497,7 @@ gspell_language_to_key (const GspellLanguage *lang)
}
const GspellLanguage *
-gspell_language_from_key (const gchar *key)
+gspell_language_lookup (const gchar *key)
{
const GSList *langs;
diff --git a/gspell/gspell-language.h b/gspell/gspell-language.h
index 93c21a8..13871f7 100644
--- a/gspell/gspell-language.h
+++ b/gspell/gspell-language.h
@@ -40,7 +40,7 @@ const gchar * gspell_language_to_string (const GspellLanguage *lang);
const gchar * gspell_language_to_key (const GspellLanguage *lang);
const GspellLanguage *
- gspell_language_from_key (const gchar *key);
+ gspell_language_lookup (const gchar *key);
/* GSList contains "GspellLanguage*" items */
const GSList * gspell_checker_get_available_languages (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]