overviewControls: Remove intermediate box

Now that the workspace switcher moved into the view selector, the
box only holds a single child. Cut out the middle man and add that
directly to the parent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1609>
This commit is contained in:
Florian Müllner 2021-01-29 15:38:08 +01:00
parent 6e13dbac11
commit ac3faac38c
2 changed files with 2 additions and 7 deletions

View File

@ -85,13 +85,7 @@ class ControlsManager extends St.Widget {
});
this.add_actor(this._group);
const box = new St.BoxLayout({
x_expand: true,
y_expand: true,
});
box.add_child(this.viewSelector);
this._group.add_child(box);
this._group.add_child(this.viewSelector);
this._group.add_actor(this._dashFader);
this.connect('destroy', this._onDestroy.bind(this));

View File

@ -241,6 +241,7 @@ var ViewSelector = GObject.registerClass({
super._init({
name: 'viewSelector',
x_expand: true,
y_expand: true,
visible: false,
});