[gnome-shell/wip/jimmac/dash-icon-spacing: 28/72] overviewControls: Make DashFader an St.Bin subclass
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/jimmac/dash-icon-spacing: 28/72] overviewControls: Make DashFader an St.Bin subclass
- Date: Tue, 2 Feb 2021 11:58:18 +0000 (UTC)
commit 354b9b71604111c02455dede6e112614817d49a7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 22 10:34:56 2021 -0300
overviewControls: Make DashFader an St.Bin subclass
So that we inherit the Clutter.BinLayout().
js/ui/overviewControls.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index b00ec5a8c3..f934b07750 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -11,16 +11,16 @@ const Overview = imports.ui.overview;
var SIDE_CONTROLS_ANIMATION_TIME = Overview.ANIMATION_TIME;
var DashFader = GObject.registerClass(
-class DashFader extends St.Widget {
+class DashFader extends St.Bin {
_init(dash) {
super._init({
+ child: dash,
x_expand: true,
x_align: Clutter.ActorAlign.CENTER,
y_align: Clutter.ActorAlign.END,
});
this._dash = dash;
- this.add_child(this._dash);
Main.overview.connect('window-drag-begin', this._onWindowDragBegin.bind(this));
Main.overview.connect('window-drag-cancelled', this._onWindowDragEnd.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]