[gnome-weather] Update for libgweather API changes



commit f1f172ea99d6424e2bd29b1534ed481de82bf3f7
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Jun 15 16:36:32 2013 +0200

    Update for libgweather API changes
    
    libgweather 3.9.5 removed deprecated API and cleaned up its
    interfaces, which requires minimal changes in gnome-weather

 configure.ac |    2 +-
 src/main.js  |    2 +-
 src/world.js |    1 -
 3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6b04934..ce9f9e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ PKG_CHECK_MODULES([DEPS], [gdk-3.0
                            glib-2.0
                            gobject-2.0
                            gtk+-3.0 >= 3.9.4
-                           gweather-3.0 >= 3.9.3])
+                           gweather-3.0 >= 3.9.5])
 
 AC_PATH_PROG([GJS],[gjs])
 
diff --git a/src/main.js b/src/main.js
index 6695f58..01b583a 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(true);
+        this.world = GWeather.Location.get_world();
         this.model = new World.WorldModel(this.world);
 
         Util.initActions(this,
diff --git a/src/world.js b/src/world.js
index 88a81d8..027bc09 100644
--- a/src/world.js
+++ b/src/world.js
@@ -72,7 +72,6 @@ const WorldModel = new Lang.Class({
             providers |= GWeather.Provider.OWM;
 
         let info = new GWeather.Info({ location: location,
-                                       forecast_type: GWeather.ForecastType.LIST,
                                        enabled_providers: providers });
         let iter;
         info.connect('updated', Lang.bind(this, function(info) {


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