[gnome-shell/gbsneto/remove-generic-container: 3/25] windowIcon: Subclass St.BoxLayout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/remove-generic-container: 3/25] windowIcon: Subclass St.BoxLayout
- Date: Sun, 30 Sep 2018 18:12:55 +0000 (UTC)
commit 37aadfaca35988c1b7386abc806bf974d49d4dec
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Aug 15 16:02:49 2018 -0300
windowIcon: Subclass St.BoxLayout
Following the previous work, turn WindowIcon into a
St.BoxLayout subclass, and remove the this.actor
field from it.
js/ui/altTab.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index a98848103..d6d99f270 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -997,15 +997,17 @@ var ThumbnailList = new Lang.Class({
var WindowIcon = new Lang.Class({
Name: 'WindowIcon',
+ Extends: St.BoxLayout,
_init(window, mode) {
+ this.parent({ style_class: 'alt-tab-app',
+ vertical: true });
+
this.window = window;
- this.actor = new St.BoxLayout({ style_class: 'alt-tab-app',
- vertical: true });
this._icon = new St.Widget({ layout_manager: new Clutter.BinLayout() });
- this.actor.add(this._icon, { x_fill: false, y_fill: false } );
+ this.add(this._icon, { x_fill: false, y_fill: false } );
this.label = new St.Label({ text: window.get_title() });
let tracker = Shell.WindowTracker.get_default();
@@ -1070,7 +1072,7 @@ var WindowList = new Lang.Class({
let win = windows[i];
let icon = new WindowIcon(win, mode);
- this.addItem(icon.actor, icon.label);
+ this.addItem(icon, icon.label);
this.icons.push(icon);
icon._unmanagedSignalId = icon.window.connect('unmanaged', (window) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]