[gnome-desktop] gnome-xkb-info: Use the correct methods to get language/country



commit 8d2ff3d0effb64dc734bd7a028f41ce26875186d
Author: Rui Matos <tiagomatos gmail com>
Date:   Sat Jan 26 17:43:57 2013 +0100

    gnome-xkb-info: Use the correct methods to get language/country
    
    gnome_get_[language|region]_from_name() wants a locale string, not the
    ISO codes in isolation. Since that's what we have when parsing the XML
    data we must instead use these new methods that accept the ISO codes
    directly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692700

 libgnome-desktop/gnome-xkb-info.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-desktop/gnome-xkb-info.c b/libgnome-desktop/gnome-xkb-info.c
index aa3105e..9e6e377 100644
--- a/libgnome-desktop/gnome-xkb-info.c
+++ b/libgnome-desktop/gnome-xkb-info.c
@@ -442,7 +442,7 @@ parse_end_element (GMarkupParseContext  *context,
           return;
         }
 
-      language = gnome_get_language_from_name (priv->current_parser_iso639Id, NULL);
+      language = gnome_get_language_from_code (priv->current_parser_iso639Id, NULL);
       if (language)
         {
           if (priv->current_parser_variant)
@@ -466,7 +466,7 @@ parse_end_element (GMarkupParseContext  *context,
           return;
         }
 
-      country = gnome_get_region_from_name (priv->current_parser_iso3166Id, NULL);
+      country = gnome_get_country_from_code (priv->current_parser_iso3166Id, NULL);
       if (country)
         {
           if (priv->current_parser_variant)


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