aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-24 13:39:36 -0400
committerTed Gould <ted@gould.cx>2010-10-24 13:39:36 -0400
commit13be17f55dae82a632ede4adb9e66556da7992a9 (patch)
tree5b75cd0208f3da84a96c905f1f7b468bfa190492
parente1ceb9d381892b12088552c36ec7fc4a1376a456 (diff)
parent45f862cee9e917f74bf39d040837fad7e95d2ff1 (diff)
downloadayatana-indicator-datetime-13be17f55dae82a632ede4adb9e66556da7992a9.tar.gz
ayatana-indicator-datetime-13be17f55dae82a632ede4adb9e66556da7992a9.tar.bz2
ayatana-indicator-datetime-13be17f55dae82a632ede4adb9e66556da7992a9.zip
Generate format string at init to run through locale
-rw-r--r--src/indicator-datetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index cef2b00..acdc340 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -220,14 +220,14 @@ indicator_datetime_init (IndicatorDatetime *self)
self->priv->idle_measure = 0;
self->priv->max_width = 0;
- self->priv->time_string = g_strdup(DEFAULT_TIME_FORMAT);
-
self->priv->time_mode = SETTINGS_TIME_LOCALE;
self->priv->show_seconds = FALSE;
self->priv->show_date = FALSE;
self->priv->show_day = FALSE;
self->priv->custom_string = g_strdup(DEFAULT_TIME_FORMAT);
+ self->priv->time_string = generate_format_string(self);
+
self->priv->service_proxy = NULL;
self->priv->sm = NULL;