workspacesView: Rename show to animateToOverview
WorkspacesDisplay is a ClutterActor subclass, and overriding the show and hide methods require chaining up, otherwise the actor isn't actually shown or hidden. To avoid clashing with the pre-existing show method, rename to animateToOverview. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1295
This commit is contained in:
parent
fe131f926d
commit
e7ec373aee
@ -273,7 +273,7 @@ var ViewSelector = GObject.registerClass({
|
||||
|
||||
show() {
|
||||
this.reset();
|
||||
this._workspacesDisplay.show(this._showAppsButton.checked);
|
||||
this._workspacesDisplay.animateToOverview(this._showAppsButton.checked);
|
||||
this._activePage = null;
|
||||
if (this._showAppsButton.checked)
|
||||
this._showPage(this._appsPage);
|
||||
|
@ -608,7 +608,7 @@ class WorkspacesDisplay extends St.Widget {
|
||||
return this._getPrimaryView().navigate_focus(from, direction, false);
|
||||
}
|
||||
|
||||
show(fadeOnPrimary) {
|
||||
animateToOverview(fadeOnPrimary) {
|
||||
this._updateWorkspacesViews();
|
||||
for (let i = 0; i < this._workspacesViews.length; i++) {
|
||||
let animationType;
|
||||
|
Loading…
Reference in New Issue
Block a user