[gspell/wip/language] language: rename to_string() -> get_name()



commit 994cd0255ca979be4efaa8bb71e6f89674f7528b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 27 18:11:56 2015 +0100

    language: rename to_string() -> get_name()

 docs/reference/gspell-1.0-sections.txt  |    2 +-
 gspell/gspell-checker-dialog.c          |    2 +-
 gspell/gspell-language-chooser-button.c |    2 +-
 gspell/gspell-language-chooser-dialog.c |    2 +-
 gspell/gspell-language.c                |    2 +-
 gspell/gspell-language.h                |    2 +-
 6 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 3d34a3b..f1b6d11 100644
--- a/docs/reference/gspell-1.0-sections.txt
+++ b/docs/reference/gspell-1.0-sections.txt
@@ -48,7 +48,7 @@ GspellLanguage
 gspell_language_get_available
 gspell_language_lookup
 gspell_language_get_code
-gspell_language_to_string
+gspell_language_get_name
 gspell_language_copy
 gspell_language_free
 <SUBSECTION Standard>
diff --git a/gspell/gspell-checker-dialog.c b/gspell/gspell-checker-dialog.c
index 128684c..d6f0fc1 100644
--- a/gspell/gspell-checker-dialog.c
+++ b/gspell/gspell-checker-dialog.c
@@ -87,7 +87,7 @@ set_spell_checker (GspellCheckerDialog *dialog,
                lang = gspell_checker_get_language (checker);
 
                gtk_header_bar_set_subtitle (header_bar,
-                                            gspell_language_to_string (lang));
+                                            gspell_language_get_name (lang));
        }
 }
 
diff --git a/gspell/gspell-language-chooser-button.c b/gspell/gspell-language-chooser-button.c
index e03adec..ebfd34f 100644
--- a/gspell/gspell-language-chooser-button.c
+++ b/gspell/gspell-language-chooser-button.c
@@ -70,7 +70,7 @@ update_button_label (GspellLanguageChooserButton *button)
        if (priv->language != NULL)
        {
                gtk_button_set_label (GTK_BUTTON (button),
-                                     gspell_language_to_string (priv->language));
+                                     gspell_language_get_name (priv->language));
        }
        else
        {
diff --git a/gspell/gspell-language-chooser-dialog.c b/gspell/gspell-language-chooser-dialog.c
index d72260b..4c1fb70 100644
--- a/gspell/gspell-language-chooser-dialog.c
+++ b/gspell/gspell-language-chooser-dialog.c
@@ -319,7 +319,7 @@ populate_language_list (GspellLanguageChooserDialog *dialog)
                const gchar *name;
                GtkTreeIter iter;
 
-               name = gspell_language_to_string (lang);
+               name = gspell_language_get_name (lang);
 
                gtk_list_store_append (store, &iter);
                gtk_list_store_set (store, &iter,
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index abe8688..2b87adf 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -477,7 +477,7 @@ gspell_language_get_available (void)
 }
 
 const gchar *
-gspell_language_to_string (const GspellLanguage *lang)
+gspell_language_get_name (const GspellLanguage *lang)
 {
        if (lang == NULL)
                /* Translators: this refers the Default language used by the
diff --git a/gspell/gspell-language.h b/gspell/gspell-language.h
index 2c11d0e..f509936 100644
--- a/gspell/gspell-language.h
+++ b/gspell/gspell-language.h
@@ -43,7 +43,7 @@ const GspellLanguage *
 
 const gchar *  gspell_language_get_code                (const GspellLanguage *lang);
 
-const gchar *  gspell_language_to_string               (const GspellLanguage *lang);
+const gchar *  gspell_language_get_name                (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]