aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-16 16:54:15 -0500
committerTed Gould <ted@gould.cx>2010-07-16 16:54:15 -0500
commite4a111094e82dec901da137273d79e2f1945d0ca (patch)
treed12d525eca21ee25e3ad1aa55fad0712ca25f244
parent2dd110402933ffb4d3ce5ea76540c4af44522188 (diff)
downloadayatana-indicator-datetime-e4a111094e82dec901da137273d79e2f1945d0ca.tar.gz
ayatana-indicator-datetime-e4a111094e82dec901da137273d79e2f1945d0ca.tar.bz2
ayatana-indicator-datetime-e4a111094e82dec901da137273d79e2f1945d0ca.zip
In the timer function we're recycling the pointer to struct tm
-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;
}