hermet pushed a commit to branch elementary-1.14.

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

commit d5e0d0076e932cc5d49728358b097a7a9f6d4238
Author: Subodh Kumar <s7158.ku...@samsung.com>
Date:   Tue May 19 21:34:29 2015 +0900

    [ELM] elm_toolbar: Use item sizing eval function.
    
    Summary:
    Item sizing evaluation function can be used instead of repeating the same 
code.
    
    Test Plan: NA
    
    Reviewers: herb, shilpasingh, cedric, Hermet
    
    Reviewed By: shilpasingh
    
    Subscribers: poornima.srinivasan
    
    Differential Revision: https://phab.enlightenment.org/D2486
---
 src/lib/elm_toolbar.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 0087a0a..9d41844 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -1309,7 +1309,6 @@ _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)
      {
@@ -1327,12 +1326,7 @@ _inform_item_number(Evas_Object *obj)
                {
                   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);
+                  _resizing_eval_item(it);
                }
           }
      }

-- 


Reply via email to