[gnome-shell] keyring: Actually ensure sensitivity when the keyring dialog opens
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyring: Actually ensure sensitivity when the keyring dialog opens
- Date: Sun, 30 Dec 2012 19:10:00 +0000 (UTC)
commit 75d44dca6bbc39a48320952fe9aa04b3f70f8863
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Dec 28 03:20:18 2012 -0500
keyring: Actually ensure sensitivity when the keyring dialog opens
I misunderstood how the control flow for the keyring worked.
https://bugzilla.gnome.org/show_bug.cgi?id=690895
js/ui/components/keyring.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js
index ff59fa3..34d7b6d 100644
--- a/js/ui/components/keyring.js
+++ b/js/ui/components/keyring.js
@@ -171,12 +171,14 @@ const KeyringDialog = new Lang.Class({
_onShowPassword: function(prompt) {
this._buildControlTable();
this._ensureOpen();
+ this._updateSensitivity(true);
this._passwordEntry.grab_key_focus();
},
_onShowConfirm: function(prompt) {
this._buildControlTable();
this._ensureOpen();
+ this._updateSensitivity(true);
this._continueButton.grab_key_focus();
},
@@ -185,12 +187,10 @@ const KeyringDialog = new Lang.Class({
},
_onPasswordActivate: function() {
- if (this.prompt.confirm_visible) {
- this._updateSensitivity(true);
+ if (this.prompt.confirm_visible)
this._confirmEntry.grab_key_focus();
- } else {
+ else
this._onContinueButton();
- }
},
_onConfirmActivate: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]