Commit 2e5295b3 authored by Marco Trevisan's avatar Marco Trevisan 🎺

dialog: Use object's set to assign properties

We can just assign a properties object to a GObject using the set() method
instead of using Object.assign.

GNOME/gnome-shell!531
parent 3121c9aa
Pipeline #79550 passed with stages
in 3 minutes and 38 seconds
......@@ -177,8 +177,8 @@ var MessageDialogContent = GObject.registerClass({
let textProps = { ellipsize: Pango.EllipsizeMode.NONE,
line_wrap: true };
Object.assign(this._subtitle.clutter_text, textProps);
Object.assign(this._body.clutter_text, textProps);
this._subtitle.clutter_text.set(textProps);
this._body.clutter_text.set(textProps);
if (!params.hasOwnProperty('style_class'))
params.style_class = 'message-dialog-main-layout';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment