diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-14 23:54:40 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-14 23:54:40 -0500 |
commit | 8441fc4f840d668e2b7fe1582f90eef66e272652 (patch) | |
tree | 60227453f9b3b2d820db498961d587141dc7e9e6 | |
parent | da87e44c2fedfea688a77137b7e10e227538e63a (diff) | |
download | ayatana-indicator-datetime-8441fc4f840d668e2b7fe1582f90eef66e272652.tar.gz ayatana-indicator-datetime-8441fc4f840d668e2b7fe1582f90eef66e272652.tar.bz2 ayatana-indicator-datetime-8441fc4f840d668e2b7fe1582f90eef66e272652.zip |
tweak snap decision comments
-rw-r--r-- | src/service.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/service.c b/src/service.c index 37f5756..270f214 100644 --- a/src/service.c +++ b/src/service.c @@ -493,13 +493,11 @@ static void update_appointment_lists (IndicatorDatetimeService * self); static gboolean on_alarm_timer (gpointer gself) { + IndicatorDatetimeService * self = INDICATOR_DATETIME_SERVICE (gself); GDateTime * now; GSList * l; - IndicatorDatetimeService * self = INDICATOR_DATETIME_SERVICE (gself); - /* Check for alarms that start at the current time. - * If we find one, trigger a snap decision displaying - * the appointment text and a single button to dismiss */ + /* If there are any alarms at the current time, show a snap decision */ now = indicator_datetime_service_get_localtime (self); for (l=self->priv->upcoming_appointments; l!=NULL; l=l->next) { @@ -512,7 +510,8 @@ on_alarm_timer (gpointer gself) g_date_time_unref (now); /* rebuild the alarm list asynchronously. - when it's done, set_upcoming_appointments() will update the alarm timer */ + set_upcoming_appointments() will update the alarm timer when this + async call is done, so no need to restart the timer here... */ update_appointment_lists (self); return G_SOURCE_REMOVE; |