mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
accessDialog: Allow body label to wrap lines
Allow the body label of the access dialog to wrap, and avoid ellipsizing it. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5286 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2377>
This commit is contained in:
parent
12a203a1db
commit
19f11ae328
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/* exported AccessDialogDBus */
|
||||
const { Clutter, Gio, GLib, GObject, Shell, St } = imports.gi;
|
||||
const { Clutter, Gio, GLib, GObject, Pango, Shell, St } = imports.gi;
|
||||
|
||||
const CheckBox = imports.ui.checkBox;
|
||||
const Dialog = imports.ui.dialog;
|
||||
|
|
@ -62,6 +62,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
|
|||
text: body,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
bodyLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||
bodyLabel.clutter_text.line_wrap = true;
|
||||
content.add_child(bodyLabel);
|
||||
|
||||
this.addButton({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue