[gnome-shell] overviewControls: Remove ControlsLayout



commit 491a69a5a2bbff963364c5b39733ea7b58a79c2f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Nov 27 10:59:29 2020 -0300

    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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1518>

 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 b5e89bb164..3d313e7d40 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]