From 5115abcf54ced84fb617b904eb42286ee78df038 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 2 Aug 2011 23:27:19 +0200 Subject: [PATCH] xrandr-indicator: port to new extension API main() has been replaced by init(), enable() and disable() --- extensions/xrandr-indicator/extension.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/extensions/xrandr-indicator/extension.js b/extensions/xrandr-indicator/extension.js index 999b0050..d8b2bf8a 100644 --- a/extensions/xrandr-indicator/extension.js +++ b/extensions/xrandr-indicator/extension.js @@ -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'); +} \ No newline at end of file