diff --git a/js/ui/dialog.js b/js/ui/dialog.js index 553b81c78..af057e631 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -214,7 +214,10 @@ var MessageDialogContent = GObject.registerClass({ } set icon(icon) { - Object.assign(this._icon, { gicon: icon, visible: icon != null }); + this._icon.set({ + gicon: icon, + visible: icon != null + }); this.notify('icon'); } @@ -231,7 +234,10 @@ var MessageDialogContent = GObject.registerClass({ } _setLabel(label, prop, value) { - Object.assign(label, { text: value || '', visible: value != null }); + label.set({ + text: value || '', + visible: value != null + }); this.notify(prop); }