weather-service: Set contact_info to DOAP file URL
Currently, GNOME Calendar does not set up the contact_info needed in libgweather 40 API. This leads to the following assertion, and no weather forecast info being shown in Calendar: `gweather_info_update: assertion 'info->contact_info != NULL' failed.` To fix the assertion, set the URL to the DOAP file on the master branch. GNOME Weather does the same, see: https://gitlab.gnome.org/GNOME/gnome-weather/-/commit/6763f7dc9cb25eac4aa13e94e07ea932a42c8e4d Part of #682
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
78d0df1404
commit
a2a6d2e4aa
@@ -637,6 +637,8 @@ update_location (GcalWeatherService *self,
|
|||||||
!location ? "<null>" : gweather_location_get_name (location));
|
!location ? "<null>" : gweather_location_get_name (location));
|
||||||
|
|
||||||
self->gweather_info = gweather_info_new (location);
|
self->gweather_info = gweather_info_new (location);
|
||||||
|
gweather_info_set_contact_info (self->gweather_info,
|
||||||
|
"https://gitlab.gnome.org/GNOME/gnome-calendar/-/raw/master/gnome-calendar.doap");
|
||||||
|
|
||||||
/* FIXME: Enable GWEATHER_PROVIDER_MET_NO if we can comply with their terms of service.
|
/* FIXME: Enable GWEATHER_PROVIDER_MET_NO if we can comply with their terms of service.
|
||||||
* https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682
|
* https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682
|
||||||
|
|||||||
Reference in New Issue
Block a user