seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=cc37e008d29bc70dfde5b07ba3f616bbd3993a0e

commit cc37e008d29bc70dfde5b07ba3f616bbd3993a0e
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Sat Oct 5 17:13:43 2013 +0900

    elm_calendar.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro.
---
 src/lib/elm_calendar.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c
index ab38bce..5fec575 100644
--- a/src/lib/elm_calendar.c
+++ b/src/lib/elm_calendar.c
@@ -67,8 +67,7 @@ _elm_calendar_smart_sizing_eval(Eo *obj, void *_pd 
EINA_UNUSED, va_list *list EI
 
 {
    Evas_Coord minw = -1, minh = -1;
-
-   Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
 
    // 7x8 (1 month+year, days, 6 dates.)
    elm_coords_finger_size_adjust(7, &minw, 8, &minh);
@@ -946,7 +945,7 @@ _elm_calendar_smart_add(Eo *obj, void *_pd, va_list *list 
EINA_UNUSED)
    int i, t;
 
    Elm_Calendar_Smart_Data *priv = _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, evas_obj_smart_add());
    elm_widget_sub_object_parent_add(obj);

-- 


Reply via email to