[gspell/wip/language: 2/3] language: rename checker_get_available_languages() -> get_available()



commit 4e6372c5850c98d55527481dfb5bc5f7f890a7d0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 27 18:04:11 2015 +0100

    language: rename checker_get_available_languages() -> get_available()

 docs/reference/gspell-1.0-sections.txt  |    4 ++--
 gspell/gspell-checker.c                 |    2 +-
 gspell/gspell-language-chooser-dialog.c |    2 +-
 gspell/gspell-language.c                |    6 +++---
 gspell/gspell-language.h                |   10 +++++-----
 5 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/docs/reference/gspell-1.0-sections.txt b/docs/reference/gspell-1.0-sections.txt
index e9f0e70..02ec567 100644
--- a/docs/reference/gspell-1.0-sections.txt
+++ b/docs/reference/gspell-1.0-sections.txt
@@ -45,10 +45,10 @@ GSPELL_TYPE_INLINE_CHECKER_GTV
 <FILE>language</FILE>
 <TITLE>GspellLanguage</TITLE>
 GspellLanguage
+gspell_language_get_available
+gspell_language_lookup
 gspell_language_to_string
 gspell_language_to_key
-gspell_language_lookup
-gspell_checker_get_available_languages
 gspell_language_copy
 gspell_language_free
 <SUBSECTION Standard>
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index fc4e3f4..624bc8e 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -315,7 +315,7 @@ get_default_language (void)
        }
 
        /* Take the first available language */
-       langs = gspell_checker_get_available_languages ();
+       langs = gspell_language_get_available ();
        if (langs != NULL)
        {
                return langs->data;
diff --git a/gspell/gspell-language-chooser-dialog.c b/gspell/gspell-language-chooser-dialog.c
index 465de8b..d72260b 100644
--- a/gspell/gspell-language-chooser-dialog.c
+++ b/gspell/gspell-language-chooser-dialog.c
@@ -311,7 +311,7 @@ populate_language_list (GspellLanguageChooserDialog *dialog)
 
        store = GTK_LIST_STORE (gtk_tree_view_get_model (priv->treeview));
 
-       available_langs = gspell_checker_get_available_languages ();
+       available_langs = gspell_language_get_available ();
 
        for (l = available_langs; l != NULL; l = l->next)
        {
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index b129b77..03d46ae 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -429,13 +429,13 @@ build_langs_list (const gchar *key,
 }
 
 /**
- * gspell_checker_get_available_languages:
+ * gspell_language_get_available:
  *
  * Returns: (transfer none) (element-type GspellLanguage): the list of available
  * languages for the spell checking.
  */
 const GSList *
-gspell_checker_get_available_languages (void)
+gspell_language_get_available (void)
 {
        EnchantBroker *broker;
        GTree *dicts;
@@ -503,7 +503,7 @@ gspell_language_lookup (const gchar *key)
 
        g_return_val_if_fail (key != NULL, NULL);
 
-       langs = gspell_checker_get_available_languages ();
+       langs = gspell_language_get_available ();
 
        while (langs != NULL)
        {
diff --git a/gspell/gspell-language.h b/gspell/gspell-language.h
index 13871f7..2118719 100644
--- a/gspell/gspell-language.h
+++ b/gspell/gspell-language.h
@@ -35,15 +35,15 @@ typedef struct _GspellLanguage GspellLanguage;
 
 GType          gspell_language_get_type                (void) G_GNUC_CONST;
 
-const gchar *  gspell_language_to_string               (const GspellLanguage *lang);
-
-const gchar *  gspell_language_to_key                  (const GspellLanguage *lang);
+/* GSList contains "GspellLanguage*" items */
+const GSList * gspell_language_get_available           (void);
 
 const GspellLanguage *
                gspell_language_lookup                  (const gchar *key);
 
-/* GSList contains "GspellLanguage*" items */
-const GSList * gspell_checker_get_available_languages  (void);
+const gchar *  gspell_language_to_string               (const GspellLanguage *lang);
+
+const gchar *  gspell_language_to_key                  (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]