} 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)
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)
}
priv = (clock_view_priv_data *)data;
-
- if (priv->base)
- evas_object_del(priv->base);
-
+ evas_object_del(priv->base);
free(priv);
}