seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=5eff10e0052ffbc6a90a7a23c4b6b0063fc60cbd
commit 5eff10e0052ffbc6a90a7a23c4b6b0063fc60cbd Author: Daniel Juyung Seo <seojuyu...@gmail.com> Date: Sat Oct 5 17:14:00 2013 +0900 elm_datetime.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. --- src/lib/elm_datetime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c index 96275b3..42bd40a 100644 --- a/src/lib/elm_datetime.c +++ b/src/lib/elm_datetime.c @@ -306,7 +306,7 @@ _reload_format(Evas_Object *obj) char *dt_fmt; ELM_DATETIME_DATA_GET(obj, sd); - Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS); + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); // FIXME: provide nl_langinfo on Windows if possible // fetch the default format from Libc. @@ -497,7 +497,7 @@ _elm_datetime_smart_sizing_eval(Eo *obj, void *_pd, va_list *list EINA_UNUSED) unsigned int idx, field_count = 0; Elm_Datetime_Smart_Data *sd = _pd; - Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS); + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++) { @@ -524,7 +524,7 @@ _elm_datetime_smart_theme(Eo *obj, void *_pd, va_list *list) unsigned int idx; Elm_Datetime_Smart_Data *sd = _pd; - Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS); + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret)); if (!int_ret) return; --