overviewControls: Remove ControlsLayout

ControlsLayout is a tiny layout manager whose only purpose
is emit "allocation-changed" after allocation. This signal
was listened to update the workspaces actual geometry.

However, since d66cd0d206, ControlsManager doesn't listen
to this signal anymore, rendering the class useless.

Remove ControlsLayout.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1518>
This commit is contained in:
Georges Basile Stavracas Neto 2020-11-27 10:59:29 -03:00 committed by Marge Bot
parent f2ee1587da
commit 491a69a5a2

View File

@ -394,21 +394,11 @@ class DashSpacer extends St.Widget {
} }
}); });
var ControlsLayout = GObject.registerClass({
Signals: { 'allocation-changed': {} },
}, class ControlsLayout extends Clutter.BinLayout {
vfunc_allocate(container, box) {
super.vfunc_allocate(container, box);
this.emit('allocation-changed');
}
});
var ControlsManager = GObject.registerClass( var ControlsManager = GObject.registerClass(
class ControlsManager extends St.Widget { class ControlsManager extends St.Widget {
_init(searchEntry) { _init(searchEntry) {
let layout = new ControlsLayout();
super._init({ super._init({
layout_manager: layout, layout_manager: new Clutter.BinLayout(),
x_expand: true, x_expand: true,
y_expand: true, y_expand: true,
clip_to_allocation: true, clip_to_allocation: true,