xrandr-indicator: port to new extension API

main() has been replaced by init(), enable() and disable()
This commit is contained in:
Giovanni Campagna
2011-08-02 23:27:19 +02:00
parent 0597577d08
commit 5115abcf54

View File

@@ -136,8 +136,14 @@ Indicator.prototype = {
}
function main(metadata) {
function init(metadata) {
imports.gettext.bindtextdomain('gnome-shell-extensions', metadata.localedir);
Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['display'] = Indicator;
}
function enable() {
Main.panel.addToStatusArea('display', new Indicator());
}
function disable() {
Main.panel.removeFromStatusArea('display');
}