Use Source.REMOVE

This commit is contained in:
lenemter 2023-09-16 13:40:34 +09:00 committed by Corentin Noël
parent f771b2a4ff
commit 43200bc0ff
2 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ namespace Gala {
Idle.add (() => {
loaded ();
return false;
return Source.REMOVE;
});
}
@ -209,7 +209,7 @@ namespace Gala {
update_animation_timeout_id = Timeout.add (interval, () => {
update_animation_timeout_id = 0;
update_animation ();
return false;
return Source.REMOVE;
});
}

View File

@ -63,7 +63,7 @@ namespace Gala {
if (animation != null && animation.filename == filename) {
Idle.add (() => {
get_animation.callback ();
return false;
return Source.REMOVE;
});
yield;
@ -76,7 +76,7 @@ namespace Gala {
Idle.add (() => {
get_animation.callback ();
return false;
return Source.REMOVE;
});
yield;