dialog: Remove messageBox container from MessageDialogContent

`MessageDialogContent.messageBox` is not really needed and was only
needed to show icons, which is now no longer supported. The styling can
also be done using other CSS classes and this makes it a bit more
straightforward to add actors to the MessageDialogContent.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/886
This commit is contained in:
Jonas Dreßler
2019-12-05 10:55:00 +01:00
committed by Florian Müllner
parent 5d99bdbe5e
commit 48f1c4b9d7
2 changed files with 10 additions and 17 deletions

View File

@ -179,18 +179,16 @@ var MessageDialogContent = GObject.registerClass({
this._subtitle.clutter_text.set(textProps);
this._body.clutter_text.set(textProps);
let defaultParams = { style_class: 'message-dialog-main-layout' };
super._init(Object.assign(defaultParams, params));
this.messageBox = new St.BoxLayout({
let defaultParams = {
style_class: 'message-dialog-content',
x_expand: true,
vertical: true,
});
this.messageBox.add_actor(this._title);
this.messageBox.add_actor(this._subtitle);
this.messageBox.add_actor(this._body);
this.add_actor(this.messageBox);
};
super._init(Object.assign(defaultParams, params));
this.add_child(this._title);
this.add_child(this._subtitle);
this.add_child(this._body);
}
get title() {