elm_separator.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 5 Oct 2013 08:15:43 +0000 (17:15 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 5 Oct 2013 08:15:43 +0000 (17:15 +0900)
src/lib/elm_separator.c

index 3797fc2..3b6e9fc 100644 (file)
@@ -38,8 +38,7 @@ static void
 _elm_separator_smart_sizing_eval(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
 {
    Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
-
-   Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
 
    edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
    evas_object_size_hint_min_set(obj, minw, minh);