[gnome-weather] Avoid a few deprecation warnings



commit da6a33e4c47a8125f8cf5ef1a5e9b474c440504b
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun May 19 16:50:11 2013 +0200

    Avoid a few deprecation warnings
    
    GWeatherInfo:world is deprecated, and so is passing FALSE to
    gweather_location_new_world().

 src/main.js  |    2 +-
 src/world.js |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 844a0d4..25cbc3f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -69,7 +69,7 @@ const Application = new Lang.Class({
         let settings = Gtk.Settings.get_for_screen(Gdk.Screen.get_default());
         settings.gtk_application_prefer_dark_theme = true;
 
-        this.world = GWeather.Location.new_world(false);
+        this.world = GWeather.Location.new_world(true);
         this.model = new World.WorldModel(this.world);
 
         Util.initActions(this,
diff --git a/src/world.js b/src/world.js
index 94b9553..3185587 100644
--- a/src/world.js
+++ b/src/world.js
@@ -66,8 +66,7 @@ const WorldModel = new Lang.Class({
     },
 
     _addLocationInternal: function(location) {
-        let info = new GWeather.Info({ world: this._world,
-                                       location: location,
+        let info = new GWeather.Info({ location: location,
                                        forecast_type: GWeather.ForecastType.LIST,
                                        enabled_providers: (GWeather.Provider.METAR |
                                                            GWeather.Provider.YR_NO) });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]