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:
parent
9b13bf552a
commit
6e86110dfd
@ -33,8 +33,8 @@
|
||||
spacing: $base_padding * 2;
|
||||
}
|
||||
|
||||
.message-list-section,
|
||||
.message-list-section-list {
|
||||
.message-view,
|
||||
.message-view-list {
|
||||
spacing: $base_padding * 2;
|
||||
}
|
||||
|
||||
|
@ -798,7 +798,7 @@ class MediaMessage extends Message {
|
||||
}
|
||||
});
|
||||
|
||||
export const MessageListSection = GObject.registerClass({
|
||||
export const MessageView = GObject.registerClass({
|
||||
Properties: {
|
||||
'can-clear': GObject.ParamSpec.boolean(
|
||||
'can-clear', null, null,
|
||||
@ -814,17 +814,17 @@ export const MessageListSection = GObject.registerClass({
|
||||
'empty-changed': {},
|
||||
'message-focused': {param_types: [Message.$gtype]},
|
||||
},
|
||||
}, class MessageListSection extends St.BoxLayout {
|
||||
_init() {
|
||||
super._init({
|
||||
style_class: 'message-list-section',
|
||||
}, class MessageView extends St.BoxLayout {
|
||||
constructor() {
|
||||
super({
|
||||
style_class: 'message-view',
|
||||
clip_to_allocation: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
this._list = new St.BoxLayout({
|
||||
style_class: 'message-list-section-list',
|
||||
style_class: 'message-view-list',
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
});
|
||||
this.add_child(this._list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user