timer: Improve duration api

- rename duration setter
- add duration getter
This commit is contained in:
Florian Brosch
2017-12-11 21:34:23 -02:00
committed by Georges Basile Stavracas Neto
parent 5475df20c6
commit 50e675da05
3 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -1235,7 +1235,7 @@ static void
update_timeout_interval (GcalWeatherService *self)
{
g_return_if_fail (GCAL_IS_WEATHER_SERVICE (self));
gcal_timer_set_duration (self->timer, self->check_interval_renew);
gcal_timer_set_default_duration (self->timer, self->check_interval_renew);
}