js: Set BoxLayout orientation

Use new `orientation` property instead of `vertical`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3614>
This commit is contained in:
Florian Müllner
2025-01-27 13:33:57 +01:00
parent 01541929eb
commit b75b4abaf0
34 changed files with 136 additions and 94 deletions

View File

@ -31,7 +31,7 @@ class KeyringDialog extends ModalDialog.ModalDialog {
let passwordBox = new St.BoxLayout({
style_class: 'prompt-dialog-password-layout',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
});
this._passwordEntry = new St.PasswordEntry({
@ -59,7 +59,7 @@ class KeyringDialog extends ModalDialog.ModalDialog {
this.prompt.set_password_actor(this._passwordEntry.clutter_text);
this.prompt.set_confirm_actor(this._confirmEntry.clutter_text);
let warningBox = new St.BoxLayout({vertical: true});
let warningBox = new St.BoxLayout({orientation: Clutter.Orientation.VERTICAL});
let capsLockWarning = new ShellEntry.CapsLockWarning();
let syncCapsLockWarningVisibility = () => {

View File

@ -64,7 +64,7 @@ const AuthenticationDialog = GObject.registerClass({
let userBox = new St.BoxLayout({
style_class: 'polkit-dialog-user-layout',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
});
bodyContent.add_child(userBox);
@ -87,7 +87,7 @@ const AuthenticationDialog = GObject.registerClass({
let passwordBox = new St.BoxLayout({
style_class: 'prompt-dialog-password-layout',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
});
this._passwordEntry = new St.PasswordEntry({
@ -104,7 +104,7 @@ const AuthenticationDialog = GObject.registerClass({
GObject.BindingFlags.SYNC_CREATE);
passwordBox.add_child(this._passwordEntry);
let warningBox = new St.BoxLayout({vertical: true});
let warningBox = new St.BoxLayout({orientation: Clutter.Orientation.VERTICAL});
let capsLockWarning = new ShellEntry.CapsLockWarning();
this._passwordEntry.bind_property('visible',