[gnome-shell] add annoying delay
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] add annoying delay
- Date: Thu, 18 Jul 2013 19:41:07 +0000 (UTC)
commit e9531487d9fe5e7e3a345b5322c190bfcb5df9bd
Author: Ray Strode <rstrode redhat com>
Date: Thu Jul 18 15:16:28 2013 -0400
add annoying delay
js/gdm/util.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index ebf5dd5..18866de 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -370,7 +370,11 @@ const ShellUserVerifier = new Lang.Class({
// to indicate the user can swipe their finger instead
this.emit('show-login-hint', _("(or swipe finger)"));
} else if (serviceName == PASSWORD_SERVICE_NAME) {
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+ 10000,
+ Lang.bind(this, function() {
this._queueMessage(info, 'login-dialog-message-info');
+ }));
}
},
@@ -379,7 +383,11 @@ const ShellUserVerifier = new Lang.Class({
// users who haven't enrolled their fingerprint.
if (serviceName != PASSWORD_SERVICE_NAME)
return;
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+ 10000,
+ Lang.bind(this, function() {
this._queueMessage(problem, 'login-dialog-message-warning');
+ }));
},
_onInfoQuery: function(client, serviceName, question) {
@@ -387,7 +395,11 @@ const ShellUserVerifier = new Lang.Class({
if (serviceName != PASSWORD_SERVICE_NAME)
return;
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+ 10000,
+ Lang.bind(this, function() {
this.emit('ask-question', serviceName, question, '');
+ }));
},
_onSecretInfoQuery: function(client, serviceName, secretQuestion) {
@@ -395,7 +407,11 @@ const ShellUserVerifier = new Lang.Class({
if (serviceName != PASSWORD_SERVICE_NAME)
return;
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+ 10000,
+ Lang.bind(this, function() {
this.emit('ask-question', serviceName, secretQuestion, '\u25cf');
+ }));
},
_onReset: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]