Neroth / gnome-shell-extension-weather

A simple extension for displaying weather informations from several cities in GNOME Shell
GNU General Public License v3.0
138 stars 143 forks source link

Support Gnome 3.16 #219

Open ikuraj opened 9 years ago

ikuraj commented 9 years ago

Hopefully should not be much more than small changes to metadata.json.

A comment from extensions.gnome.org that might be helpful:

I have updated this extension to 3.16 with a downloadable zip package. The zip package, and a tutorial for installing it, is available at http://michaeltunnell.com/blog/16-linux/56-my-updated-316-packages-for-gnome-extensions

ferdnyc commented 9 years ago

In addition to the metadata.json version support update, that package also makes the following change to extension.js, removing GWeather.Provider.IWIN and shifting GWeather.Provider.OWM to the end of the providers list.

--- weather-extension@xeked.com/extension.js    2014-12-06 03:34:54.000000000 -0500
+++ 316_weather/extension.js    2014-03-29 12:24:06.000000000 -0400
@@ -162,9 +162,8 @@
            this.info = new GWeather.Info({location: this.location});               this.status("Information loaded");

            this.info.set_enabled_providers(GWeather.Provider.METAR |
-                                   GWeather.Provider.OWM |
                            GWeather.Provider.YR_NO |
-                           GWeather.Provider.IWIN);
+                                   GWeather.Provider.OWM);

            this.infoC = this.info.connect("updated",function(){that.refresh();that.status(0);});   this.status("Information connection started");
            }

...Hmm, actually that may just be an out-of-date extension.js, I just noticed that the file date is 2014-03-29. Looks like it's missing 329139f7238d439613780e6f520c5259c1390019.

joca-bt commented 9 years ago

I'm using it in GNOME 3.16 and it's working.

mudongliang commented 9 years ago

Thank you for supporting gnome 3.16! It is a very useful extension of gnome!