Object Items: Adapt del callback to Eo.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Thu, 11 Sep 2014 06:52:30 +0000 (09:52 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 12 Nov 2014 10:03:58 +0000 (12:03 +0200)
commit03d3ec51fea75e2ac5cc6d958961995e706d2c8e
tree1ad59a624c20986c70c9bffc391b8d25e31f98ab
parentfd0c5ff053cf5287d1d677ef23dc1d8e452b4075
Object Items: Adapt del callback to Eo.

Because of widget item design, it is hard to make it fit to Eo as it
should be:
- _eo_del_cb should have the callback pointer as data but pre_notify
function forces its storage into the item data because we need to be
able to call the cb before del is really triggered.
- only one cb is supported for an item, meaning replacing it would mean
we have to save the function pointer inside the item, delete the
callback with the previous function as data and then add the new
callback. Instead of it, we just add our own wrapper as Eo callback that
will invoke the function pointer stored in the item data.
src/lib/elm_widget.c