From aefd46052e64ca67bc970096c3d81dd37494637c Mon Sep 17 00:00:00 2001 From: Radek Kintop Date: Fri, 4 Mar 2016 16:17:10 +0100 Subject: [PATCH] System clock view - date format is locale dependant Change-Id: Ia74603d415e4e4205367330c3a198e84d3b2317d Signed-off-by: Radek Kintop --- src/view/system/view_clock.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/view/system/view_clock.c b/src/view/system/view_clock.c index b008f35..fa8fc0e 100644 --- a/src/view/system/view_clock.c +++ b/src/view/system/view_clock.c @@ -317,14 +317,13 @@ static void _show(void *data) } else { elm_datetime_format_set(priv->time_part, "%I:%M %P"); } + elm_datetime_format_set(priv->date_part, "%x"); elm_datetime_value_set(priv->date_part, (Elm_Datetime_Time *)¤t_time); elm_datetime_value_set(priv->time_part, (Elm_Datetime_Time *)¤t_time); - if (priv->base) { - evas_object_show(priv->base); - elm_object_focus_set(priv->auto_manual_setup_btn, EINA_TRUE); - } + evas_object_show(priv->base); + elm_object_focus_set(priv->auto_manual_setup_btn, EINA_TRUE); } static void _hide(void *data) @@ -336,9 +335,7 @@ static void _hide(void *data) return; } priv = (clock_view_priv_data *)data; - - if (priv->base) - evas_object_hide(priv->base); + evas_object_hide(priv->base); } static void _destroy(void *data) @@ -351,10 +348,7 @@ static void _destroy(void *data) } priv = (clock_view_priv_data *)data; - - if (priv->base) - evas_object_del(priv->base); - + evas_object_del(priv->base); free(priv); } -- 2.7.4