mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
authPrompt: Use signal handler instead of vfunc
The prompt itself may get destroyed when canceled, in which
case it is no longer possible to chain up in the vfunc.
This is usually not an issue as the prompt is only destroyed
at the end of a transition, but it results in a warning if
animations are disabled.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3317>
(cherry picked from commit dac4f2cb86)
This commit is contained in:
parent
418276e4d1
commit
c22d56e75f
1 changed files with 2 additions and 2 deletions
|
|
@ -133,10 +133,10 @@ export const AuthPrompt = GObject.registerClass({
|
|||
this._userVerifier = null;
|
||||
}
|
||||
|
||||
vfunc_key_press_event(event) {
|
||||
on_key_press_event(event) {
|
||||
if (event.get_key_symbol() === Clutter.KEY_Escape)
|
||||
this.cancel();
|
||||
return super.vfunc_key_press_event(event);
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
|
||||
_initInputRow() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue