From 491a69a5a2bbff963364c5b39733ea7b58a79c2f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 27 Nov 2020 10:59:29 -0300 Subject: [PATCH] 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 d66cd0d2067a, ControlsManager doesn't listen to this signal anymore, rendering the class useless. Remove ControlsLayout. Part-of: --- js/ui/overviewControls.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index b5e89bb16..3d313e7d4 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -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( class ControlsManager extends St.Widget { _init(searchEntry) { - let layout = new ControlsLayout(); super._init({ - layout_manager: layout, + layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true, clip_to_allocation: true,