From 6e86110dfd8ca01f5a9d86c44f277af2be3987d5 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Sat, 5 Oct 2024 17:54:17 +0200 Subject: [PATCH] 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: --- .../gnome-shell-sass/widgets/_message-list.scss | 4 ++-- js/ui/messageList.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/theme/gnome-shell-sass/widgets/_message-list.scss b/data/theme/gnome-shell-sass/widgets/_message-list.scss index d4ec1f68c..bef622074 100644 --- a/data/theme/gnome-shell-sass/widgets/_message-list.scss +++ b/data/theme/gnome-shell-sass/widgets/_message-list.scss @@ -33,8 +33,8 @@ spacing: $base_padding * 2; } -.message-list-section, -.message-list-section-list { +.message-view, +.message-view-list { spacing: $base_padding * 2; } diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 6ae1f12ee..d270dfde5 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -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);