raster pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=2304de9d22527f5cf060bd50c8856b34c6fcf588
commit 2304de9d22527f5cf060bd50c8856b34c6fcf588 Author: taehyub <[email protected]> Date: Wed Mar 25 07:47:33 2015 +0900 elm_toolbar: add toolbar item size calculation and setting min values for fixed items Summary: In case of the toolbar item size is fixed, the size of toolbar item became finger size. so, after signal emission in _inform_item_number(), edje_object_size_min_restricted_calc() and evas_object_size_hint_min_set() function are added. Test Plan: change edc for supporting fixed toolbar item and run examples of toolbar in elementary_test Reviewers: woohyun, seoz, Hermet, raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D2184 --- src/lib/elm_toolbar.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index ad3b5c2..e62276d 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -1299,6 +1299,7 @@ _inform_item_number(Evas_Object *obj) char buf[sizeof("elm,number,item,") + 4]; static int scount = 0; int count = 0; + Evas_Coord mw, mh; EINA_INLIST_FOREACH(sd->items, it) { @@ -1313,7 +1314,16 @@ _inform_item_number(Evas_Object *obj) EINA_INLIST_FOREACH(sd->items, it) { if (!it->separator && !it->object) - edje_object_signal_emit(VIEW(it), buf, "elm"); + { + edje_object_signal_emit(VIEW(it), buf, "elm"); + edje_object_message_signal_process(VIEW(it)); + + mw = mh = -1; + elm_coords_finger_size_adjust(1, &mw, 1, &mh); + + edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh); + evas_object_size_hint_min_set(VIEW(it), mw, mh); + } } } } --
