weather-service: add location property and split from gc_w_s_run

This helps in preparation of splitting out a dedicated
activation flag from the actually starting and stopping
the service.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
This commit is contained in:
Markus Göllnitz
2024-01-27 16:09:02 +00:00
committed by Georges Basile Stavracas Neto
parent 47db4a1de3
commit faa6e91d8b
3 changed files with 75 additions and 9 deletions
+2 -1
View File
@@ -201,7 +201,8 @@ manage_weather_service (GcalWeatherSettings *self)
g_warning ("Unknown location '%s' selected", gtk_editable_get_text (self->weather_location_entry));
}
gcal_weather_service_run (weather_service, location);
gcal_weather_service_set_location (weather_service, location);
gcal_weather_service_start (weather_service);
}
else
{