cedric pushed a commit to branch master.

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

commit c91fc929c548129ed200285a641d92adb2df0cf8
Author: woochan lee <wc0917....@samsung.com>
Date:   Fri Oct 30 06:52:00 2015 +0100

    multibuttonentry: fix internal entry be an orphan when editable set API 
called.
    
    Summary:
    When user called "elm_multibuttonetnry_editable_set()" API as false.
    the internal entry will be unpacked from box.
    
    Then called that API as true again.
    the internal entry just show without box packed.
    
    Also, editable set API should not work in MBE shrink mode.
    
    Test Plan:
    Alternately Call elm_multibuttonentry_ediable_set API as true, false.
    Then check the internal entry state.
    
    Reviewers: Hermet, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3134
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elc_multibuttonentry.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index 99305b1..3b4a2db 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -1745,8 +1745,11 @@ _elm_multibuttonentry_editable_set(Eo *obj EINA_UNUSED, 
Elm_Multibuttonentry_Dat
    if (sd->editable == editable) return;
    sd->editable = editable;
 
-   if (sd->editable)
-     evas_object_show(sd->entry);
+   if (sd->editable && (sd->view_state != MULTIBUTTONENTRY_VIEW_SHRINK))
+     {
+        elm_box_pack_end(sd->box, sd->entry);
+        evas_object_show(sd->entry);
+     }
    else
      {
         elm_box_unpack(sd->box, sd->entry);

-- 


Reply via email to