From: Radek Kintop Date: Fri, 4 Mar 2016 15:17:10 +0000 (+0100) Subject: System clock view - date format is locale dependant X-Git-Tag: accepted/tizen/tv/20160308.101500~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aefd46052e64ca67bc970096c3d81dd37494637c;p=profile%2Ftv%2Fapps%2Fnative%2Fair_settings.git System clock view - date format is locale dependant Change-Id: Ia74603d415e4e4205367330c3a198e84d3b2317d Signed-off-by: Radek Kintop --- 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); }