[gnome-shell/gbsneto/new-lock-screen: 9/22] screenShield: Cleanup unused parameters
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen: 9/22] screenShield: Cleanup unused parameters
- Date: Wed, 16 Oct 2019 14:09:34 +0000 (UTC)
commit fe3d55eb800e58c5e18c41922b0218ed43a113b7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 7 18:41:45 2019 -0300
screenShield: Cleanup unused parameters
js/ui/screenShield.js | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 42879b5ca2..a192458e2b 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -99,14 +99,14 @@ var ScreenShield = class {
this._smartcardManager.connect('smartcard-inserted',
(manager, token) => {
if (this._isLocked && token.UsedToLogin)
- this._liftShield(true, 0);
+ this._liftShield();
});
this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
this._oVirtCredentialsManager.connect('user-authenticated',
() => {
if (this._isLocked)
- this._liftShield(true, 0);
+ this._liftShield();
});
this._loginManager = LoginManager.getLoginManager();
@@ -215,9 +215,9 @@ var ScreenShield = class {
this._createBackground(i);
}
- _liftShield(onPrimary, velocity) {
+ _liftShield() {
if (this._isLocked) {
- if (this._ensureUnlockDialog(onPrimary, true /* allowCancel */))
+ if (this._ensureUnlockDialog(true /* allowCancel */))
this._hideLockScreen();
} else {
this.deactivate(true /* animate */);
@@ -265,7 +265,7 @@ var ScreenShield = class {
return Clutter.EVENT_PROPAGATE;
if (this._isLocked &&
- this._ensureUnlockDialog(true, true) &&
+ this._ensureUnlockDialog(true) &&
GLib.unichar_isgraph(unichar))
this._dialog.addCharacter(unichar);
@@ -403,7 +403,7 @@ var ScreenShield = class {
this.actor.show();
this._isGreeter = Main.sessionMode.isGreeter;
this._isLocked = true;
- if (this._ensureUnlockDialog(true, true))
+ if (this._ensureUnlockDialog(true))
this._hideLockScreen();
}
@@ -424,7 +424,7 @@ var ScreenShield = class {
this._cursorTracker.set_pointer_visible(true);
}
- _ensureUnlockDialog(onPrimary, allowCancel) {
+ _ensureUnlockDialog(allowCancel) {
if (!this._dialog) {
let constructor = Main.sessionMode.unlockDialog;
if (!constructor) {
@@ -437,7 +437,7 @@ var ScreenShield = class {
let time = global.get_current_time();
- if (!this._dialog.open(time, onPrimary)) {
+ if (!this._dialog.open(time)) {
// This is kind of an impossible error: we're already modal
// by the time we reach this...
log('Could not open login dialog: failed to acquire grab');
@@ -465,7 +465,7 @@ var ScreenShield = class {
if (this._lockScreenState != MessageTray.State.HIDDEN)
return;
- this._ensureUnlockDialog(false, false);
+ this._ensureUnlockDialog(false);
this._lockScreenState = MessageTray.State.SHOWING;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]