cedric pushed a commit to branch master.

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

commit 2d041496f843560dba6b41152aa46fc2f04b74f4
Author: woochan lee <wc0917....@samsung.com>
Date:   Tue Jul 28 23:02:27 2015 +0200

    multibuttonentry: update end text(item count) even mbe shrinked.
    
    Summary:
    In some MBE use case, Application can append item using only item_append 
API.
    in that case, the end text(item count) doesn't update properly.
    So, i add a code for fix it.
    
    @fix
    
    Test Plan:
    1. Add a button for call "elm_multibuttonentry_item_append()" in 
test_multibbutonentry.c
    2. Make MBE shrink mode.
    3. Click button to append item to shrinked MBE.
    4. Check the MBE end text state.
    
    Reviewers: Hermet, woohyun
    
    Differential Revision: https://phab.enlightenment.org/D2848
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elc_multibuttonentry.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index a9c87cf..0385fbf 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -768,6 +768,9 @@ _item_new(Elm_Multibuttonentry_Data *sd,
         item->func = func;
      }
 
+   if (!elm_object_focus_get(obj) && sd->view_state == 
MULTIBUTTONENTRY_VIEW_SHRINK && sd->w_box)
+     _shrink_mode_set(obj, EINA_TRUE);
+
    switch (pos)
      {
       case MULTIBUTTONENTRY_POS_START:

-- 


Reply via email to