From dc578a9e7988d8d04cba68160f525930856199b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Mon, 20 Jan 2020 17:42:09 +0100 Subject: [PATCH] keyring: Use wiggle effect to inform about new warning message https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942 --- js/ui/components/keyring.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js index da7eeec95..46c61ace0 100644 --- a/js/ui/components/keyring.js +++ b/js/ui/components/keyring.js @@ -7,8 +7,7 @@ const Dialog = imports.ui.dialog; const ModalDialog = imports.ui.modalDialog; const ShellEntry = imports.ui.shellEntry; const CheckBox = imports.ui.checkBox; - -var WORK_SPINNER_ICON_SIZE = 16; +const Util = imports.misc.util; var KeyringDialog = GObject.registerClass( class KeyringDialog extends ModalDialog.ModalDialog { @@ -70,6 +69,10 @@ class KeyringDialog extends ModalDialog.ModalDialog { this.prompt.connect('notify::warning-visible', () => { warning.opacity = this.prompt.warning_visible ? 255 : 0; }); + this.prompt.connect('notify::warning', () => { + if (this._passwordEntry && warning !== '') + Util.wiggle(this._passwordEntry); + }); warningBox.add_child(warning); passwordBox.add_child(warningBox);