[librsvg: 6/30] glib::get_language_names -> glib::language_names
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 6/30] glib::get_language_names -> glib::language_names
- Date: Wed, 23 Jun 2021 23:05:39 +0000 (UTC)
commit 1523f40a9c17ae041127cab3b40ef754f9403550
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jun 23 17:25:50 2021 -0500
glib::get_language_names -> glib::language_names
Also now it returns a Vec<GString>
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/516>
src/accept_language.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/accept_language.rs b/src/accept_language.rs
index 134c9d04..239ffb75 100644
--- a/src/accept_language.rs
+++ b/src/accept_language.rs
@@ -259,7 +259,8 @@ impl UserLanguage {
fn locale_from_environment() -> Locale {
let mut locale = Locale::invariant();
- for name in glib::get_language_names() {
+ for name in glib::language_names() {
+ let name = name.as_str();
if let Ok(range) = LanguageRange::from_unix(&name) {
locale.add(&range);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]