dock: update to new gnome-shell API

Main.chrome was replaced by Main.layoutManager, and main() was
replaced by init()
This commit is contained in:
Giovanni Campagna
2011-08-18 19:38:10 +02:00
parent f0a19173c1
commit ba16a8e0d8
+3 -3
View File
@@ -303,7 +303,7 @@ Dock.prototype = {
this._overviewHiddenId = Main.overview.connect('hidden', Lang.bind(this, function() {
this.actor.show();
}));
Main.chrome.addActor(this.actor);
Main.layoutManager.addChrome(this.actor);
this.actor.lower_bottom();
//hidden
@@ -790,7 +790,7 @@ DockIconMenu.prototype = {
}));
source.actor.connect('destroy', Lang.bind(this, function () { this.actor.destroy(); }));
Main.chrome.addActor(this.actor);
Main.layoutManager.addChrome(this.actor);
},
_redisplay: function() {
@@ -852,7 +852,7 @@ DockIconMenu.prototype = {
}
}
function main(extensionMeta) {
function init(extensionMeta) {
imports.gettext.bindtextdomain('gnome-shell-extensions', extensionMeta.localedir);
}