Login: sensitivity fixes
The login dialog had these issues: - the entry was not really disabled, you could still edit text - the sensitivity state was not reset on verification failure - the session list was not disabled The unlock dialog had these issues: - "Login as another user..." was not insensitive - redundant password char setting, overwriting the one given by the question The entry insensitive style was also wrong. https://bugzilla.gnome.org/show_bug.cgi?id=687113
This commit is contained in:
@ -176,8 +176,6 @@ const UnlockDialog = new Lang.Class({
|
||||
default: true };
|
||||
this.setButtons([cancelButton, this._okButton]);
|
||||
|
||||
this._updateSensitivity(true);
|
||||
|
||||
let otherUserLabel = new St.Label({ text: _("Log in as another user"),
|
||||
style_class: 'login-dialog-not-listed-label' });
|
||||
this._otherUserButton = new St.Button({ style_class: 'login-dialog-not-listed-button',
|
||||
@ -191,6 +189,8 @@ const UnlockDialog = new Lang.Class({
|
||||
{ x_align: St.Align.START,
|
||||
x_fill: false });
|
||||
|
||||
this._updateSensitivity(true);
|
||||
|
||||
let batch = new Batch.Hold();
|
||||
this._userVerifier.begin(this._userName, batch);
|
||||
|
||||
@ -209,6 +209,8 @@ const UnlockDialog = new Lang.Class({
|
||||
this._promptEntry.reactive = sensitive;
|
||||
this._promptEntry.clutter_text.editable = sensitive;
|
||||
this._updateOkButtonSensitivity(sensitive && this._promptEntry.text.length > 0);
|
||||
this._otherUserButton.reactive = sensitive;
|
||||
this._otherUserButton.can_focus = sensitive;
|
||||
},
|
||||
|
||||
_updateOkButtonSensitivity: function(sensitive) {
|
||||
@ -292,8 +294,6 @@ const UnlockDialog = new Lang.Class({
|
||||
this._firstQuestion = true;
|
||||
|
||||
this._promptEntry.text = '';
|
||||
this._promptEntry.clutter_text.set_password_char('\u25cf');
|
||||
this._promptEntry.menu.isPassword = true;
|
||||
|
||||
this._updateSensitivity(false);
|
||||
},
|
||||
|
Reference in New Issue
Block a user