gdm: Expose the source serviceName for messages and verification failures
By giving to the AuthPrompt information regarding the source service name (and so the ability to know whether it's a foreground service) can give it the ability to behave differently. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1652>
This commit is contained in:

committed by
Ray Strode

parent
6ccd289691
commit
526f0711f1
@ -273,12 +273,12 @@ var AuthPrompt = GObject.registerClass({
|
||||
this.reset();
|
||||
}
|
||||
|
||||
_onShowMessage(userVerifier, message, type) {
|
||||
this.setMessage(message, type);
|
||||
_onShowMessage(_userVerifier, serviceName, message, type) {
|
||||
this.setMessage(serviceName, message, type);
|
||||
this.emit('prompted');
|
||||
}
|
||||
|
||||
_onVerificationFailed(userVerifier, canRetry) {
|
||||
_onVerificationFailed(userVerifier, serviceName, canRetry) {
|
||||
this._queryingService = null;
|
||||
this.clear();
|
||||
|
||||
@ -410,7 +410,7 @@ var AuthPrompt = GObject.registerClass({
|
||||
});
|
||||
}
|
||||
|
||||
setMessage(message, type) {
|
||||
setMessage(serviceName, message, type) {
|
||||
if (type == GdmUtil.MessageType.ERROR)
|
||||
this._message.add_style_class_name('login-dialog-message-warning');
|
||||
else
|
||||
|
Reference in New Issue
Block a user