Commit 51655be6 authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Florian Müllner

keyring: Use bind_property for message and description values

This code was commented out in commit 593b4318 as it was causing a crash in gjs.

As per the [1] gjs fix, this can now be safely used again.

[1] GNOME/gjs!289
GNOME/gnome-shell!510
parent 9697c209
Pipeline #82043 passed with stages
in 5 minutes and 45 seconds
......@@ -23,20 +23,8 @@ var KeyringDialog = class extends ModalDialog.ModalDialog {
this._content = new Dialog.MessageDialogContent({ icon });
this.contentLayout.add(this._content);
// FIXME: Why does this break now?
/*
this.prompt.bind_property('message', this._content, 'title', GObject.BindingFlags.SYNC_CREATE);
this.prompt.bind_property('description', this._content, 'body', GObject.BindingFlags.SYNC_CREATE);
*/
this.prompt.connect('notify::message', () => {
this._content.title = this.prompt.message;
});
this._content.title = this.prompt.message;
this.prompt.connect('notify::description', () => {
this._content.body = this.prompt.description;
});
this._content.body = this.prompt.description;
this._workSpinner = null;
this._controlTable = null;
......
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