[gnome-shell/wip/fmuellner/fix-obj-access-warning] animation: Disable spinner animations when actor is destroyed
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/fix-obj-access-warning] animation: Disable spinner animations when actor is destroyed
- Date: Wed, 23 Jan 2019 23:24:07 +0000 (UTC)
commit edbb20433293f48beb4ff6beb8c1d0dd1bf035f1
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jan 23 23:40:18 2019 +0100
animation: Disable spinner animations when actor is destroyed
There's nothing to animate anymore, just a source for warnings when
trying to access a destroyed object.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/362
js/ui/animation.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/js/ui/animation.js b/js/ui/animation.js
index 5b4a10c08..65fff2cd7 100644
--- a/js/ui/animation.js
+++ b/js/ui/animation.js
@@ -104,6 +104,11 @@ var Spinner = new Lang.Class({
this._animate = animate;
},
+ _onDestroy() {
+ this._animate = false;
+ this.parent();
+ },
+
play() {
Tweener.removeTweens(this.actor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]