workspace, workspacesView: Cleanup animation methods

Remove Workspace.zoomTo/FromOverview(), they're unused now. Rename
everything up to ControlsManager to prepareToEnter/LeaveOverview(),
since these classes don't run the animation anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:
Georges Basile Stavracas Neto
2021-01-02 16:17:17 -03:00
committed by Marge Bot
parent d221215ab6
commit 22f4a6b7f6
4 changed files with 12 additions and 45 deletions

View File

@ -178,7 +178,7 @@ class ControlsManager extends St.Widget {
}
animateToOverview(callback) {
this.viewSelector.animateToOverview();
this.viewSelector.prepareToEnterOverview();
this._stateAdjustment.value = ControlsState.HIDDEN;
this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
@ -194,7 +194,7 @@ class ControlsManager extends St.Widget {
animateFromOverview(callback) {
this._ignoreShowAppsButtonToggle = true;
this.viewSelector.animateFromOverview();
this.viewSelector.prepareToLeaveOverview();
this._stateAdjustment.ease(ControlsState.HIDDEN, {
duration: Overview.ANIMATION_TIME,