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

@ -62,7 +62,7 @@ class TodayButton extends St.Button {
});
const hbox = new St.BoxLayout({
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
});
this.child = hbox;
@ -117,7 +117,7 @@ class EventsSection extends St.Button {
x_expand: true,
child: new St.BoxLayout({
style_class: 'events-box',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
}),
});
@ -135,7 +135,7 @@ class EventsSection extends St.Button {
this._eventsList = new St.BoxLayout({
style_class: 'events-list',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
});
this.child.add_child(this._eventsList);
@ -271,7 +271,7 @@ class EventsSection extends St.Button {
for (let event of events) {
const box = new St.BoxLayout({
style_class: 'event-box',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
});
box.add_child(new St.Label({
text: event.summary,
@ -552,7 +552,7 @@ class WeatherSection extends St.Button {
let box = new St.BoxLayout({
style_class: 'weather-box',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
});
@ -933,7 +933,7 @@ class DateMenuButton extends PanelMenu.Button {
vbox.add_child(this._calendar);
const displaysBox = new St.BoxLayout({
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
style_class: 'datemenu-displays-box',
});