forked from enlightenment/efl
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 <cedric@osg.samsung.com>
This commit is contained in:
parent
ffaee8f599
commit
d7b2b4facc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue