From f1548a7ec9db193dea66b9c25fd5c0cb2b03a510 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 12 Jan 2021 17:53:19 +0100 Subject: gweather: Fix _gweather_info_new_clone() throwing warnings Order the properties to be copied onto the new object in an order that wouldn't throw warnings, eg. the "enabled-providers" property doesn't like to be set if the "application-id" and "contact-info" properties aren't set. --- libgweather/gweather-weather.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c index 897b684..d8301de 100644 --- a/libgweather/gweather-weather.c +++ b/libgweather/gweather-weather.c @@ -2437,9 +2437,10 @@ GWeatherInfo * _gweather_info_new_clone (GWeatherInfo *original) { return g_object_new (GWEATHER_TYPE_INFO, - "location", original->glocation, - "enabled-providers", original->providers, "application-id", original->application_id, + "contact-info", original->contact_info, + "enabled-providers", original->providers, + "location", original->glocation, NULL); } -- cgit v1.2.1