[libgweather] Fix setting GWeatherInfo:location



commit cc162a0598932e162337cda43a222b41d3dc84bc
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Feb 23 01:23:55 2013 +0100

    Fix setting GWeatherInfo:location
    
    There is no reason the property should be construct_only, setting
    works just fine. It must stay construct, though, or the default value
    stops working.

 libgweather/weather.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgweather/weather.c b/libgweather/weather.c
index 6161b65..eb8fd97 100644
--- a/libgweather/weather.c
+++ b/libgweather/weather.c
@@ -1857,7 +1857,7 @@ gweather_info_class_init (GWeatherInfoClass *klass)
                                "Location",
                                "The location this info represents",
                                GWEATHER_TYPE_LOCATION,
-                               G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
+                               G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
     g_object_class_install_property (gobject_class, PROP_LOCATION, pspec);
 
     pspec = g_param_spec_enum ("forecast-type",


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