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

@ -909,7 +909,10 @@ class NotificationSection extends MessageList.MessageListSection {
const Placeholder = GObject.registerClass(
class Placeholder extends St.BoxLayout {
_init() {
super._init({style_class: 'message-list-placeholder', vertical: true});
super._init({
style_class: 'message-list-placeholder',
orientation: Clutter.Orientation.VERTICAL,
});
this._date = new Date();
this._icon = new St.Icon({icon_name: 'no-notifications-symbolic'});
@ -954,7 +957,7 @@ class CalendarMessageList extends St.Widget {
this.add_child(this._placeholder);
let box = new St.BoxLayout({
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
y_expand: true,
});
@ -1009,7 +1012,7 @@ class CalendarMessageList extends St.Widget {
this._sectionList = new St.BoxLayout({
style_class: 'message-list-sections',
vertical: true,
orientation: Clutter.Orientation.VERTICAL,
x_expand: true,
y_expand: true,
});