[gnome-shell/gbsneto/new-lock-screen: 10/13] sessonMode: Remove 'lock-screen' mode
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen: 10/13] sessonMode: Remove 'lock-screen' mode
- Date: Sat, 12 Oct 2019 11:36:00 +0000 (UTC)
commit b0dc2d2feb25cd9f37378eba4a1e4506bb65e837
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 7 18:48:21 2019 -0300
sessonMode: Remove 'lock-screen' mode
As per the latest mockups, the only session mode
related to locked screens will be the unlock dialog.
js/ui/screenShield.js | 9 +++------
js/ui/sessionMode.js | 13 -------------
2 files changed, 3 insertions(+), 19 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 38219b05f2..86dbfd8450 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -490,8 +490,8 @@ var ScreenShield = class {
this._lockDialogGroup.grab_key_focus();
- if (Main.sessionMode.currentMode != 'lock-screen')
- Main.sessionMode.pushMode('lock-screen');
+ if (Main.sessionMode.currentMode != 'unlock-dialog')
+ Main.sessionMode.pushMode('unlock-dialog');
}
_lockScreenShown(params) {
@@ -548,8 +548,6 @@ var ScreenShield = class {
_continueDeactivate(animate) {
this._hideLockScreen();
- if (Main.sessionMode.currentMode == 'lock-screen')
- Main.sessionMode.popMode('lock-screen');
if (Main.sessionMode.currentMode == 'unlock-dialog')
Main.sessionMode.popMode('unlock-dialog');
@@ -615,8 +613,7 @@ var ScreenShield = class {
this.actor.show();
- if (Main.sessionMode.currentMode != 'unlock-dialog' &&
- Main.sessionMode.currentMode != 'lock-screen') {
+ if (Main.sessionMode.currentMode != 'unlock-dialog') {
this._isGreeter = Main.sessionMode.isGreeter;
if (!this._isGreeter)
Main.sessionMode.pushMode('unlock-dialog');
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index e47bb97b13..5716ecac36 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -53,19 +53,6 @@ const _modes = {
panelStyle: 'login-screen'
},
- 'lock-screen': {
- isLocked: true,
- isGreeter: undefined,
- unlockDialog: undefined,
- components: ['polkitAgent', 'telepathyClient'],
- panel: {
- left: [],
- center: [],
- right: ['aggregateMenu']
- },
- panelStyle: 'lock-screen'
- },
-
'unlock-dialog': {
isLocked: true,
unlockDialog: undefined,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]