[libgweather/wip/hadess/fixes: 11/13] yrno: Rename elements
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/wip/hadess/fixes: 11/13] yrno: Rename elements
- Date: Tue, 12 Jan 2021 09:53:05 +0000 (UTC)
commit f3a9ba0e6ddff4b32e3938eaebd470e779aaea68
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 11 17:50:47 2021 +0100
yrno: Rename elements
They were never master/slave elements, but parent/child, as is common in
XML.
libgweather/weather-metno.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgweather/weather-metno.c b/libgweather/weather-metno.c
index fa5e012d..17bc59a0 100644
--- a/libgweather/weather-metno.c
+++ b/libgweather/weather-metno.c
@@ -338,10 +338,10 @@ parse_forecast_xml_new (GWeatherInfo *original_info,
to_time = date_to_time_t (val, original_info->location.tz_hint);
xmlFree (val);
- /* New API has forecast in a list of "master" elements
- with details (indicated by from==to) and "slave" elements
+ /* New API has forecast in a list of "parent" elements
+ with details (indicated by from==to) and "children" elements
that hold only precipitation and symbol. For our purpose,
- the master element is enough, except that we actually
+ the parent element is enough, except that we actually
want that symbol. So pick the symbol from the next element.
Additionally, compared to the old API the new API has one
<location> element inside each <time> element.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]