[gnome-clocks/wip/vala] Fix world clock save



commit c39e619ae15f887d73a12e5f1aed801fabdb4007
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 16 21:13:26 2013 +0100

    Fix world clock save

 src/gweather-3.0.vapi |    2 +-
 src/world.vala        |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gweather-3.0.vapi b/src/gweather-3.0.vapi
index cced6f9..af0082f 100644
--- a/src/gweather-3.0.vapi
+++ b/src/gweather-3.0.vapi
@@ -88,7 +88,7 @@ namespace GWeather {
                public bool has_coords ();
                public GWeather.Location @ref ();
                public GWeather.Location ref_world ();
-               public GLib.Variant serialize ();
+               public unowned GLib.Variant serialize ();
                public void unref ();
                [CCode (has_construct_function = false)]
                public Location.world (bool use_regions);
diff --git a/src/world.vala b/src/world.vala
index d4ef22f..31aa58d 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -325,6 +325,7 @@ public class MainPanel : Gd.Stack, Clocks.Clock {
         dialog.response.connect ((dialog, response) => {
             if (response == 1) {
                 var location = ((LocationDialog) dialog).get_location ();
+                locations.append (location);
                 add_location (location);
                 save ();
             }


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