From 8d1e4659d19c7a28aa7682558063f1c29d14bc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 15 Apr 2020 11:16:32 +0200 Subject: [PATCH] js/ui: Always use namespace for animation modes Clutter.Animation doesn't contain any animation modes, they live in Clutter.AnimationMode. The places we did `Clutter.Animation.WHATEVER` just evaluated to `undefined`. Thus, use the correct namespace for the animation mode enums. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1199 --- js/ui/panel.js | 2 +- js/ui/switcherPopup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index c2e0f00d3..e4f20daa6 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -281,7 +281,7 @@ var AppMenuButton = GObject.registerClass({ this.remove_all_transitions(); this.ease({ opacity: 0, - mode: Clutter.Animation.EASE_OUT_QUAD, + mode: Clutter.AnimationMode.EASE_OUT_QUAD, duration: Overview.ANIMATION_TIME, onComplete: () => this.hide(), }); diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 23d74ff39..1ff7f00f4 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -317,7 +317,7 @@ var SwitcherPopup = GObject.registerClass({ this.ease({ opacity: 0, duration: POPUP_FADE_OUT_TIME, - mode: Clutter.Animation.EASE_OUT_QUAD, + mode: Clutter.AnimationMode.EASE_OUT_QUAD, onComplete: () => this.destroy(), }); } else {