From 7388e4006a81d7d2c5b070f0fd79d0db1863f26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Mon, 27 Jan 2020 22:19:31 +0100 Subject: [PATCH] kbdA11yDialog: Remove styleClass argument from DialogContent params The MessageDialogContent class does not have a styleClass param, also using the "access-dialog" css class doesn't make sense for this dialog, so just remove that param. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/962 --- js/ui/kbdA11yDialog.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/ui/kbdA11yDialog.js b/js/ui/kbdA11yDialog.js index 158f29367..9114b951e 100644 --- a/js/ui/kbdA11yDialog.js +++ b/js/ui/kbdA11yDialog.js @@ -49,10 +49,8 @@ class KbdA11yDialog extends GObject.Object { return; } - let contentParams = { title, description, styleClass: 'access-dialog' }; - let content = new Dialog.MessageDialogContent(contentParams); - - dialog.contentLayout.add_actor(content); + let content = new Dialog.MessageDialogContent({ title, description }); + dialog.contentLayout.add_child(content); dialog.addButton({ label: enabled ? _("Leave On") : _("Turn On"), action: () => {