aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-08-16 17:14:31 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-08-16 17:14:31 -0400
commitc1c8b40a1f2f38c3deff52d2e214fe9b76a4101f (patch)
tree1c8280e4e1613a92bd257ba60f35c647805cde2a /src/indicator-datetime.c
parent5e71d57cdb42e41ebcd71b25df915fa051dc189a (diff)
parent5c578868c37e7d3d45fc598b95ca3facae46cb33 (diff)
downloadayatana-indicator-datetime-c1c8b40a1f2f38c3deff52d2e214fe9b76a4101f.tar.gz
ayatana-indicator-datetime-c1c8b40a1f2f38c3deff52d2e214fe9b76a4101f.tar.bz2
ayatana-indicator-datetime-c1c8b40a1f2f38c3deff52d2e214fe9b76a4101f.zip
* New upstream release.
* Adding in a new greeter mode * Fixing autotools
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 072253b..163804b 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -829,11 +829,13 @@ update_label (IndicatorDatetime * io, GDateTime ** datetime)
static void
update_time (IndicatorDatetime * self)
{
- GDateTime * dt;
+ GDateTime * dt = NULL;
update_label(self, &dt);
timezone_update_all_labels(self);
- setup_timer(self, dt);
- g_date_time_unref(dt);
+ if (dt != NULL) {
+ setup_timer(self, dt);
+ g_date_time_unref(dt);
+ }
return;
}
@@ -857,11 +859,13 @@ timer_func (gpointer user_data)
{
IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
self->priv->timer = 0;
- GDateTime * dt;
+ GDateTime * dt = NULL;
update_label(self, &dt);
timezone_update_all_labels(self);
- setup_timer(self, dt);
- g_date_time_unref(dt);
+ if (dt != NULL) {
+ setup_timer(self, dt);
+ g_date_time_unref(dt);
+ }
return FALSE;
}