[gnome-control-center] user-accounts: Fix last login button sensitivity



commit fc9b455bd6cbff090c295f6e693ebf9748d1200b
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Dec 22 11:03:10 2016 +0100

    user-accounts: Fix last login button sensitivity
    
    The last login button should be insensitive for other accounts if the
    panel is not unlocked.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767065

 panels/user-accounts/um-user-panel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 5aa21e4..92fcaee 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -1435,6 +1435,9 @@ on_permission_changed (GPermission *permission,
 
                 gtk_widget_set_sensitive (get_widget (d, "account-fingerprint-button"), TRUE);
                 remove_unlock_tooltip (get_widget (d, "account-fingerprint-button"));
+
+                gtk_widget_set_sensitive (get_widget (d, "last-login-button"), TRUE);
+                remove_unlock_tooltip (get_widget (d, "last-login-button"));
         }
         else {
                 gtk_widget_hide (get_widget (d, "user-icon-button"));
@@ -1448,6 +1451,9 @@ on_permission_changed (GPermission *permission,
 
                 gtk_widget_set_sensitive (get_widget (d, "account-fingerprint-button"), FALSE);
                 add_unlock_tooltip (get_widget (d, "account-fingerprint-button"));
+
+                gtk_widget_set_sensitive (get_widget (d, "last-login-button"), FALSE);
+                add_unlock_tooltip (get_widget (d, "last-login-button"));
         }
 
         um_password_dialog_set_user (d->password_dialog, user);


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