[gnome-shell/gbsneto/new-lock-screen-part2: 19/46] unlockDialog, loginDialog: Add a 'wake-up-screen' signal
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 19/46] unlockDialog, loginDialog: Add a 'wake-up-screen' signal
- Date: Mon, 9 Dec 2019 16:56:52 +0000 (UTC)
commit 4003626a9e987bf8642d2899f6c8d01ccd5f9e48
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 28 18:22:55 2019 -0300
unlockDialog, loginDialog: Add a 'wake-up-screen' signal
The signal is currently present in the notifications box, but next
commits will move the notifications box to the unlock dialog.
Add a 'wake-up-screen' signal to the dialogs.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
js/gdm/loginDialog.js | 5 ++++-
js/ui/screenShield.js | 2 ++
js/ui/unlockDialog.js | 5 ++++-
3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index e5383a3a6e..8e58adc222 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -409,7 +409,10 @@ var SessionMenuButton = GObject.registerClass({
});
var LoginDialog = GObject.registerClass({
- Signals: { 'failed': {} },
+ Signals: {
+ 'failed': {},
+ 'wake-up-screen': {},
+ },
}, class LoginDialog extends St.Widget {
_init(parentActor) {
super._init({ style_class: 'login-dialog', visible: false });
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 871e8211ce..38368c3d74 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -829,6 +829,8 @@ var ScreenShield = class {
}
this._dialog.connect('failed', this._onUnlockFailed.bind(this));
+ this._wakeUpScreenId = this._dialog.connect(
+ 'wake-up-screen', this._wakeUpScreen.bind(this));
}
this._dialog.allowCancel = allowCancel;
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index d413fcd337..a046c56f67 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -53,7 +53,10 @@ class UnlockDialogClock extends St.BoxLayout {
});
var UnlockDialog = GObject.registerClass({
- Signals: { 'failed': {} },
+ Signals: {
+ 'failed': {},
+ 'wake-up-screen': {},
+ },
}, class UnlockDialog extends St.Widget {
_init(parentActor) {
super._init({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]