[gnome-control-center] user-accounts: hide language settings for current user



commit 5e2ed8e7a7daa0b45ab5cbae681ee90301998b40
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Jun 13 14:27:30 2016 +0200

    user-accounts: hide language settings for current user
    
    Language settings should not be shown. That's what the Region &
    Language panel settings are for. See:
    https://wiki.gnome.org/Design/SystemSettings/UserAccounts
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767065

 panels/user-accounts/um-user-panel.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index b3a40bf..2b6ea7e 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -946,6 +946,13 @@ show_user (ActUser *user, CcUserPanelPrivate *d)
         gtk_widget_set_visible (widget, show);
         gtk_widget_set_visible (label, show);
 
+        /* Language: do not show for current user */
+        widget = get_widget (d, "account-language-button");
+        label = get_widget (d, "language-label");
+        show = act_user_get_uid (user) != getuid();
+        gtk_widget_set_visible (widget, show);
+        gtk_widget_set_visible (label, show);
+
         /* Last login: show when administrator or current user */
         widget = get_widget (d, "last-login-value-label");
         label = get_widget (d, "last-login-label");


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