summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-12-22 13:45:48 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-12-22 13:46:30 -0500
commit193568f7e3b35b6dc8f44d8a2d6eeaacd87f374c (patch)
tree3e23be5dab0a987e08cd91c5c0f1850ead8a439f
parent55352b09346ca541c98bdfe16832430ab5ec25c6 (diff)
box: implement Evas.Object_Smart.calculate
this allows boxes to be manually calculated ref T2836
-rw-r--r--src/lib/elm_box.c8
-rw-r--r--src/lib/elm_box.eo1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/elm_box.c b/src/lib/elm_box.c
index 352e956a0..db38fdc13 100644
--- a/src/lib/elm_box.c
+++ b/src/lib/elm_box.c
@@ -374,6 +374,14 @@ _transition_layout_animation_exec(Evas_Object *obj,
374} 374}
375 375
376EOLIAN static void 376EOLIAN static void
377_elm_box_evas_object_smart_calculate(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
378{
379 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
380
381 evas_object_smart_calculate(wd->resize_obj);
382}
383
384EOLIAN static void
377_elm_box_evas_object_smart_add(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED) 385_elm_box_evas_object_smart_add(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
378{ 386{
379 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 387 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
diff --git a/src/lib/elm_box.eo b/src/lib/elm_box.eo
index ca33d26e1..fb80153eb 100644
--- a/src/lib/elm_box.eo
+++ b/src/lib/elm_box.eo
@@ -282,6 +282,7 @@ class Elm.Box (Elm.Widget)
282 Eo.Base.constructor; 282 Eo.Base.constructor;
283 Evas.Object_Smart.add; 283 Evas.Object_Smart.add;
284 Evas.Object_Smart.del; 284 Evas.Object_Smart.del;
285 Evas.Object_Smart.calculate;
285 Elm.Widget.focus_direction; 286 Elm.Widget.focus_direction;
286 Elm.Widget.focus_next_manager_is; 287 Elm.Widget.focus_next_manager_is;
287 Elm.Widget.focus_direction_manager_is; 288 Elm.Widget.focus_direction_manager_is;