[gnome-control-center] user-accounts: show correct language if it isn't set
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: show correct language if it isn't set
- Date: Wed, 24 Sep 2014 17:15:49 +0000 (UTC)
commit 50bed210e54f06155a3eecb9ef6e4479ee1350b6
Author: Ondrej Holy <oholy redhat com>
Date: Wed Sep 24 12:07:48 2014 +0200
user-accounts: show correct language if it isn't set
Determine the language for the logged in user if it isn't set in the
acountsservice.
https://bugzilla.gnome.org/show_bug.cgi?id=737216
panels/user-accounts/um-user-panel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index c9293af..b30619c 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -704,8 +704,10 @@ show_user (ActUser *user, CcUserPanelPrivate *d)
cc_common_language_add_user_languages (model);
lang = g_strdup (act_user_get_language (user));
- if (!lang)
+ if ((!lang || *lang == '\0') && act_user_get_uid (user) == getuid ()) {
lang = cc_common_language_get_current_language ();
+ act_user_set_language (user, lang);
+ }
if (cc_common_language_get_iter_for_language (model, lang, &iter)) {
um_editable_combo_set_active_iter (UM_EDITABLE_COMBO (widget), &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]