[gnome-shell] kbdA11yDialog: Remove styleClass argument from DialogContent params
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] kbdA11yDialog: Remove styleClass argument from DialogContent params
- Date: Mon, 27 Jan 2020 22:45:02 +0000 (UTC)
commit 7388e4006a81d7d2c5b070f0fd79d0db1863f26f
Author: Jonas Dreßler <verdre v0yd nl>
Date: Mon Jan 27 22:19:31 2020 +0100
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 158f293673..9114b951e7 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: () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]