mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Use arrow functions for tweener callbacks
While it is legal to use method syntax for the function properties here, arrow notation is less unexpected and allows us to drop the separate scope properties. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
This commit is contained in:
parent
6ed5bc2f6c
commit
8fcd6c7153
11 changed files with 30 additions and 50 deletions
|
|
@ -295,8 +295,7 @@ var AuthPrompt = class {
|
|||
time: DEFAULT_BUTTON_WELL_ANIMATION_TIME,
|
||||
delay: DEFAULT_BUTTON_WELL_ANIMATION_DELAY,
|
||||
transition: 'linear',
|
||||
onCompleteScope: this,
|
||||
onComplete() {
|
||||
onComplete: () => {
|
||||
if (wasSpinner) {
|
||||
if (this._spinner)
|
||||
this._spinner.stop();
|
||||
|
|
|
|||
|
|
@ -913,7 +913,7 @@ var LoginDialog = GObject.registerClass({
|
|||
{ opacity: 255,
|
||||
time: _FADE_ANIMATION_TIME,
|
||||
transition: 'easeOutQuad',
|
||||
onUpdate() {
|
||||
onUpdate: () => {
|
||||
let children = Main.layoutManager.uiGroup.get_children();
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
|
|
@ -921,12 +921,10 @@ var LoginDialog = GObject.registerClass({
|
|||
children[i].opacity = this.opacity;
|
||||
}
|
||||
},
|
||||
onUpdateScope: this,
|
||||
onComplete() {
|
||||
onComplete: () => {
|
||||
if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
|
||||
this._authPrompt.reset();
|
||||
},
|
||||
onCompleteScope: this });
|
||||
} });
|
||||
}
|
||||
|
||||
_gotGreeterSessionProxy(proxy) {
|
||||
|
|
@ -943,7 +941,7 @@ var LoginDialog = GObject.registerClass({
|
|||
{ opacity: 0,
|
||||
time: _FADE_ANIMATION_TIME,
|
||||
transition: 'easeOutQuad',
|
||||
onUpdate() {
|
||||
onUpdate: () => {
|
||||
let children = Main.layoutManager.uiGroup.get_children();
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
|
|
@ -951,11 +949,9 @@ var LoginDialog = GObject.registerClass({
|
|||
children[i].opacity = this.opacity;
|
||||
}
|
||||
},
|
||||
onUpdateScope: this,
|
||||
onComplete() {
|
||||
onComplete: () => {
|
||||
this._greeter.call_start_session_when_ready_sync(serviceName, true, null);
|
||||
},
|
||||
onCompleteScope: this });
|
||||
} });
|
||||
}
|
||||
|
||||
_onSessionOpened(client, serviceName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue