mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue