[gnome-clocks] Use officially released Vala bindings for libgweather



commit ffe34cabc2aea165e80175da496c22ea44f1ebad
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date:   Mon Sep 2 09:56:23 2013 +0200

    Use officially released Vala bindings for libgweather
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707268

 Makefile.am           |    2 +-
 configure.ac          |    2 +-
 src/gweather-3.0.vapi |  292 -------------------------------------------------
 src/world.vala        |    4 +-
 4 files changed, 3 insertions(+), 297 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2ceabda..3c728a4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -86,6 +86,7 @@ AM_VALAFLAGS = \
        --vapidir=egg-list-box \
        --pkg gio-2.0 \
        --pkg gtk+-3.0 \
+       --pkg gweather-3.0 \
        --pkg libcanberra \
        --pkg libnotify \
        --gresources  $(top_srcdir)/data/gnome-clocks.gresource.xml
@@ -115,7 +116,6 @@ gnome_clocks_SOURCES = \
        $(BUILT_SOURCES) \
        $(VALA_SOURCES) \
        src/cutils.c \
-       src/gweather-3.0.vapi \
        src/gnome-desktop-3.0.vapi \
        src/config.vapi
 
diff --git a/configure.ac b/configure.ac
index f206573..782baa2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,7 @@ PKG_CHECK_MODULES(CLOCKS, [
     glib-2.0 >= 2.36
     gtk+-3.0 >= 3.9.11
     libcanberra >= 0.30
-    gweather-3.0 >= 3.9.3
+    gweather-3.0 >= 3.9.91
     gnome-desktop-3.0 >= 3.7.90
     libnotify >= 0.7.0
 ])
diff --git a/src/world.vala b/src/world.vala
index 0be9319..1607036 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -145,9 +145,7 @@ private class Item : Object, ContentItem {
     public static Item deserialize (GLib.Variant location_variant) {
         GWeather.Location? location = null;
 
-        // This looks like a constructor for historic reasons
-        // it returns the same instance after the first call
-        var world = new GWeather.Location.world (true);
+        var world = GWeather.Location.get_world ();
 
         foreach (var v in location_variant) {
             var key = v.get_child_value (0).get_string ();


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