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



commit 525e9f0473f1bb9d243e5665fa00784e97b72fb6
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 f36de45..d7f7de6 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -186,13 +186,16 @@ 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._windowList.connect('style-changed', Lang.bind(this,
             function() {
@@ -202,7 +205,7 @@ const WindowList = new Lang.Class({
             }));
 
         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]