multibuttonentry: Fix expand state changed callback called many times.
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 19 Jun 2017 03:00:30 +0000 (12:00 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 19 Jun 2017 06:14:20 +0000 (15:14 +0900)
commit3805544a32cd9ab6920ba770e2717e1a41436a88
tree38bf092726232f11ba7074071fb7f1b4bbfda768
parent08f04b1496479f2ff8d5d8cea2cff5f8f01d7952
multibuttonentry: Fix expand state changed callback called many times.

Summary:
The expand state changed callback has been called when layout property changed and other reason.
Even expand state is not changed.

So we need to check the current view state to call expand changed callback.
(We can't prevent calling the _shrink_mode_set() function. It needs to call the re-arrange internal items.)

Test Plan:
elemenatay_test - multibuttonentry.

Check the shrink, expand state.

Reviewers: jpeg, cedric, woohyun

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4970
src/lib/elementary/elc_multibuttonentry.c