From e5ae9e7110952ed90b9fc31c991fcc924a170c3d Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 19 Feb 2013 23:20:15 +0100 Subject: [PATCH] apps-menu: update for gnome-shell changes After the stage hierarchy handling moved to LayoutManager, HotCorner wants the layoutManager instance as a parameter. --- extensions/apps-menu/extension.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index dcecfb1f..afc10481 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -116,8 +116,8 @@ const HotCorner = new Lang.Class({ Name: 'HotCorner', Extends: Layout.HotCorner, - _init : function() { - this.parent(); + _init : function(layoutManager) { + this.parent(layoutManager); }, _onCornerEntered : function() { @@ -170,7 +170,7 @@ const ApplicationsButton = new Lang.Class({ _init: function() { this.parent(1.0, null, false); - this._hotCorner = new HotCorner(); + this._hotCorner = new HotCorner(Main.layoutManager); this.setMenu(new ApplicationsMenu(this.actor, 1.0, St.Side.TOP, this, this._hotCorner)); Main.panel.menuManager.addMenu(this.menu);