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



commit 28f5ef863074bcc15f5cdf5db97695290e56d958
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 6798394..9ffd817 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -178,16 +178,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]