apps-menu: update for gnome-shell changes

After the stage hierarchy handling moved to LayoutManager, HotCorner
wants the layoutManager instance as a parameter.
This commit is contained in:
Giovanni Campagna
2013-02-19 23:20:15 +01:00
parent 5c91a2867d
commit e5ae9e7110
+3 -3
View File
@@ -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);