elm_box : Added _elm_box_evas_object_smart_calculate() in elm_box 40/75040/1
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Thu, 16 Jun 2016 10:29:28 +0000 (19:29 +0900)
committerJEONGHYUN YUN <jh0506.yun@samsung.com>
Thu, 16 Jun 2016 10:31:59 +0000 (19:31 +0900)
This function is already added in opensource and bring into Tizen.

Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
Change-Id: I8806f08702db712d15d5cb856ad78e3409467763

src/lib/elm_box.c
src/lib/elm_box.eo

index e65788b963a73e4c90554e1068cd1ff9335a7fa2..f597e02b302f4f05cf40f83fcb93fbc8b147debb 100644 (file)
@@ -373,6 +373,14 @@ _transition_layout_animation_exec(Evas_Object *obj,
      }
 }
 
+EOLIAN static void
+_elm_box_evas_object_smart_calculate(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
+{
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+
+   elm_box_recalculate(obj);
+}
+
 EOLIAN static void
 _elm_box_evas_object_smart_add(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
 {
index ca33d26e1c670fdcc1012d3045103b3ec8d781f4..fb80153eb3d987d0655dc8c31bb8effa66581122 100644 (file)
@@ -282,6 +282,7 @@ class Elm.Box (Elm.Widget)
       Eo.Base.constructor;
       Evas.Object_Smart.add;
       Evas.Object_Smart.del;
+      Evas.Object_Smart.calculate;
       Elm.Widget.focus_direction;
       Elm.Widget.focus_next_manager_is;
       Elm.Widget.focus_direction_manager_is;