aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-datetime.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index b7b8a2d..7034fb8 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -540,13 +540,8 @@ timer_func (gpointer user_data)
{
IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
self->priv->timer = 0;
- setup_timer(self, NULL);
-
- if (self->priv->label != NULL) {
- update_label(self);
- return FALSE;
- }
-
+ struct tm * ltime = update_label(self);
+ setup_timer(self, ltime);
return FALSE;
}