From 71eb5f06c6a2b706a8d9cea853e8bfed435977ff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Braun Date: Mon, 5 Sep 2011 00:32:50 +0800 Subject: [PATCH] Support for gnome-shell 3.2 --- configure.ac | 2 +- src/extension.js | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f1810d5..5b3b972 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ(2.63) dnl be carefull, the version needs to be in sync with your gnome shell version -AC_INIT([gnome-shell-extension-weather],[3.0],[https://github.com/ecyrbe/gnome-shell-extension-weather/issues]) +AC_INIT([gnome-shell-extension-weather],[3.1.90],[https://github.com/ecyrbe/gnome-shell-extension-weather/issues]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([config]) diff --git a/src/extension.js b/src/extension.js index 4bd73d8..1eba084 100644 --- a/src/extension.js +++ b/src/extension.js @@ -704,8 +704,18 @@ WeatherMenuButton.prototype = { } }; -function main() { - this._weatherMenu = new WeatherMenuButton(); +let weatherMenu; + +function init() { +} + +function enable() { + weatherMenu = new WeatherMenuButton(); + Main.panel.addToStatusArea('weatherMenu', weatherMenu); +} + +function disable() { + weatherMenu.destroy(); } // vim:set ts=4 sw=4 et: