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
This commit is contained in:
Jonas Dreßler 2020-01-27 22:19:31 +01:00 committed by Florian Müllner
parent 6c1cd1d8be
commit 7388e4006a

View File

@ -49,10 +49,8 @@ class KbdA11yDialog extends GObject.Object {
return; return;
} }
let contentParams = { title, description, styleClass: 'access-dialog' }; let content = new Dialog.MessageDialogContent({ title, description });
let content = new Dialog.MessageDialogContent(contentParams); dialog.contentLayout.add_child(content);
dialog.contentLayout.add_actor(content);
dialog.addButton({ label: enabled ? _("Leave On") : _("Turn On"), dialog.addButton({ label: enabled ? _("Leave On") : _("Turn On"),
action: () => { action: () => {