polkitAgent: Don't use setButtons
https://bugzilla.gnome.org/show_bug.cgi?id=690594
This commit is contained in:
parent
42e58a4b72
commit
4231c879ef
@ -159,14 +159,13 @@ const AuthenticationDialog = new Lang.Class({
|
|||||||
messageBox.add(this._nullMessageLabel);
|
messageBox.add(this._nullMessageLabel);
|
||||||
this._nullMessageLabel.show();
|
this._nullMessageLabel.show();
|
||||||
|
|
||||||
this.setButtons([{ label: _("Cancel"),
|
this._cancelButton = this.addButton({ label: _("Cancel"),
|
||||||
action: Lang.bind(this, this.cancel),
|
action: Lang.bind(this, this.cancel),
|
||||||
key: Clutter.Escape
|
key: Clutter.Escape });
|
||||||
},
|
this._okButton = this.addButton({ label: _("Authenticate"),
|
||||||
{ label: _("Authenticate"),
|
action: Lang.bind(this, this._onAuthenticateButtonPressed),
|
||||||
action: Lang.bind(this, this._onAuthenticateButtonPressed),
|
default: true },
|
||||||
default: true
|
{ expand: true, x_fill: false, x_align: St.Align.END });
|
||||||
}]);
|
|
||||||
|
|
||||||
this._doneEmitted = false;
|
this._doneEmitted = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user