elm_panel: prevent redundant callback function addition or deletion 77/167177/1
authorJaeun Choi <jaeun12.choi@samsung.com>
Mon, 8 Jan 2018 08:23:51 +0000 (17:23 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Tue, 16 Jan 2018 04:59:46 +0000 (13:59 +0900)
commit89f98c2541a340544cf66f1a14ece99ca936b1d5
tree01d72c6f921e0e273d05b1f20b8d977d84d329e4
parent6f6af81f9a4a0950f7ea0fb38cbd736121123741
elm_panel: prevent redundant callback function addition or deletion

there is a need to check if callback functions already exist or not
before adding or deleting them, because they are added or deleted
at two points:
in _elm_panel_scrollable_set() and _elm_panel_elm_widget_disable().

Change-Id: Ieb534ce6842a9fc8577d4608b21953cf52d49a26
origin: upstream (65b828b050abc56a1aee4f722535de3e0bea5fbb)
src/lib/elm_panel.c
src/lib/elm_widget_panel.h