messageList: Rename MessageSection to MessageView

For message grouping by source we need more control over the list of
messages to reflect this change rename the MessageSection to
MessageView. Message from different sources will be added to the
MessageView directly in a future commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
This commit is contained in:
Julian Sparber 2024-10-05 17:54:17 +02:00 committed by Marge Bot
parent 9b13bf552a
commit 6e86110dfd
2 changed files with 8 additions and 8 deletions

View File

@ -33,8 +33,8 @@
spacing: $base_padding * 2; spacing: $base_padding * 2;
} }
.message-list-section, .message-view,
.message-list-section-list { .message-view-list {
spacing: $base_padding * 2; spacing: $base_padding * 2;
} }

View File

@ -798,7 +798,7 @@ class MediaMessage extends Message {
} }
}); });
export const MessageListSection = GObject.registerClass({ export const MessageView = GObject.registerClass({
Properties: { Properties: {
'can-clear': GObject.ParamSpec.boolean( 'can-clear': GObject.ParamSpec.boolean(
'can-clear', null, null, 'can-clear', null, null,
@ -814,17 +814,17 @@ export const MessageListSection = GObject.registerClass({
'empty-changed': {}, 'empty-changed': {},
'message-focused': {param_types: [Message.$gtype]}, 'message-focused': {param_types: [Message.$gtype]},
}, },
}, class MessageListSection extends St.BoxLayout { }, class MessageView extends St.BoxLayout {
_init() { constructor() {
super._init({ super({
style_class: 'message-list-section', style_class: 'message-view',
clip_to_allocation: true, clip_to_allocation: true,
orientation: Clutter.Orientation.VERTICAL, orientation: Clutter.Orientation.VERTICAL,
x_expand: true, x_expand: true,
}); });
this._list = new St.BoxLayout({ this._list = new St.BoxLayout({
style_class: 'message-list-section-list', style_class: 'message-view-list',
orientation: Clutter.Orientation.VERTICAL, orientation: Clutter.Orientation.VERTICAL,
}); });
this.add_child(this._list); this.add_child(this._list);