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:
parent
6e13dbac11
commit
ac3faac38c
@ -85,13 +85,7 @@ class ControlsManager extends St.Widget {
|
|||||||
});
|
});
|
||||||
this.add_actor(this._group);
|
this.add_actor(this._group);
|
||||||
|
|
||||||
const box = new St.BoxLayout({
|
this._group.add_child(this.viewSelector);
|
||||||
x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
});
|
|
||||||
box.add_child(this.viewSelector);
|
|
||||||
|
|
||||||
this._group.add_child(box);
|
|
||||||
this._group.add_actor(this._dashFader);
|
this._group.add_actor(this._dashFader);
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
@ -241,6 +241,7 @@ var ViewSelector = GObject.registerClass({
|
|||||||
super._init({
|
super._init({
|
||||||
name: 'viewSelector',
|
name: 'viewSelector',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
|
y_expand: true,
|
||||||
visible: false,
|
visible: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user