[gnome-shell/gbsneto/new-lock-screen: 20/23] 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: 20/23] sessonMode: Remove 'lock-screen' mode
- Date: Thu, 10 Oct 2019 19:33:26 +0000 (UTC)
commit 485db87920b0a8a3744e8c9a6fd63f4733ba48a0
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 90c4dde9aa..e73968ba84 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -486,8 +486,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) {
@@ -544,8 +544,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');
@@ -611,8 +609,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]