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: