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
This commit is contained in:
parent
fc073f2185
commit
fc9b455bd6
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue