overviewControls: Rename appGridBox to workspacesBox

The naming of the appGridBox is quite confusing, as it actually
describes the box of the workspaces strip, but in the appGrid state of
the overview. Change that name and call it workspacesBox instead, which
seems to make more sense here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3278>
This commit is contained in:
Jonas Dreßler
2024-05-10 10:19:10 +02:00
committed by Marge Bot
parent f9e988abcb
commit 64e5721dd8

View File

@ -108,7 +108,7 @@ class ControlsManagerLayout extends Clutter.LayoutManager {
return workspaceBox;
}
_getAppDisplayBoxForState(state, box, searchHeight, dashHeight, appGridBox) {
_getAppDisplayBoxForState(state, box, searchHeight, dashHeight, workspacesBox) {
const [width, height] = box.get_size();
const {y1: startY} = this._workAreaBox;
const appDisplayBox = new Clutter.ActorBox();
@ -120,14 +120,14 @@ class ControlsManagerLayout extends Clutter.LayoutManager {
break;
case ControlsState.APP_GRID:
appDisplayBox.set_origin(0,
startY + searchHeight + this._spacing + appGridBox.get_height() + this._spacing);
startY + searchHeight + this._spacing + workspacesBox.get_height() + this._spacing);
break;
}
appDisplayBox.set_size(width,
height -
searchHeight - this._spacing -
appGridBox.get_height() - this._spacing -
workspacesBox.get_height() - this._spacing -
dashHeight - this._spacing);
return appDisplayBox;