[gnome-shell] js/ui: Always use namespace for animation modes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] js/ui: Always use namespace for animation modes
- Date: Wed, 15 Apr 2020 14:09:42 +0000 (UTC)
commit 8d1e4659d19c7a28aa7682558063f1c29d14bc10
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Apr 15 11:16:32 2020 +0200
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 c2e0f00d3a..e4f20daa63 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 23d74ff39b..1ff7f00f47 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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]