[gnome-shell-extensions/window-list: 9/13] Don't put tray button on top of window list



commit 1f69aa4d54c242d5fa8fc6b11842285f16e95816
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Jan 23 21:20:25 2013 +0100

    Don't put tray button on top of window list

 extensions/window-list/extension.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 5a00009..e91eb2b 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -186,16 +186,19 @@ const WindowList = new Lang.Class({
                                      layout_manager: new Clutter.BinLayout()});
         this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
 
+        let box = new St.BoxLayout({ x_expand: true, y_expand: true });
+        this.actor.add_actor(box);
+
         let layout = new Clutter.BoxLayout({ homogeneous: true });
         this._windowList = new St.Widget({ style_class: 'window-list',
                                            layout_manager: layout,
                                            x_align: Clutter.ActorAlign.START,
                                            x_expand: true,
                                            y_expand: true });
-        this.actor.add_actor(this._windowList);
+        box.add(this._windowList, { expand: true });
 
         this._trayButton = new TrayButton();
-        this.actor.add_actor(this._trayButton.actor);
+        box.add(this._trayButton.actor);
 
         Main.layoutManager.addChrome(this.actor, { affectsStruts: true,
                                                    trackFullscreen: true });



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