System clock view - date format is locale dependant 03/61203/2
authorRadek Kintop <r.kintop@samsung.com>
Fri, 4 Mar 2016 15:17:10 +0000 (16:17 +0100)
committerAgnieszka Janowicz <a.janowicz@samsung.com>
Mon, 7 Mar 2016 10:58:52 +0000 (11:58 +0100)
Change-Id: Ia74603d415e4e4205367330c3a198e84d3b2317d
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
src/view/system/view_clock.c

index b008f35..fa8fc0e 100644 (file)
@@ -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 *)&current_time);
        elm_datetime_value_set(priv->time_part, (Elm_Datetime_Time *)&current_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);
 }