multibuttonentry: fix MBE item clear, item delete logic error.
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 21 Sep 2015 23:49:45 +0000 (01:49 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Sat, 26 Sep 2015 06:34:44 +0000 (08:34 +0200)
commit59a14b4a812f3cd8ba2022e893a33acc0334cfd3
tree063fb6445313f2b64fcea185260ef0263631a6c6
parentfe71ea324aa95128e6dc2c8879e1131d68674c05
multibuttonentry: fix MBE item clear, item delete logic error.

Summary:
elm_multibuttonentry_clear API not worked well.
It deleted only odd items. Because of the sd->items has been modified inside elm_widget_item_del().

Then we don't have to search target item inside of _item_del().

@fix

Test Plan:
Add MBE items.
Call elm_multibuttonentry_clear API.
Check the bug state.

Reviewers: Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3065

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
legacy/elementary/src/lib/elc_multibuttonentry.c