From 9009b50bd1a857ea63ec13972748bc01529b2538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 23 Jan 2020 23:25:38 +0100 Subject: [PATCH] polkitAgent: Remove styleClass argument for caps lock warning The caps lock warning now has its own css class that works for this case, too. Remove the custom class parameter and just use the default one. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/952 --- js/ui/components/polkitAgent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 8aea29724..e2b056fe1 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -108,8 +108,8 @@ var AuthenticationDialog = GObject.registerClass({ this._passwordBox.add(this._workSpinner); this._passwordBox.hide(); - this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({ style_class: 'prompt-dialog-caps-lock-warning' }); - content.add_child(this._capsLockWarningLabel); + let capsLockWarning = new ShellEntry.CapsLockWarning(); + content.add_child(capsLockWarning); this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' }); this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;