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
This commit is contained in:
parent
b3b91f1699
commit
8d1e4659d1
@ -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(),
|
||||
});
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user