cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5038f2551a0b09a1a3566768e41b58468267fef0
commit 5038f2551a0b09a1a3566768e41b58468267fef0 Author: Cedric BAIL <ced...@osg.samsung.com> Date: Mon Nov 7 11:10:49 2016 -0800 elementary: update example to use Efl_Future. --- src/examples/elementary/filemvc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c index 4441df2..80fdede 100644 --- a/src/examples/elementary/filemvc.c +++ b/src/examples/elementary/filemvc.c @@ -79,12 +79,15 @@ _tree_selected_cb(void *data, const Efl_Event *event) { Efl_Model_Test_Filemvc_Data *priv = data; Eo *child = event->info; - Eina_Promise *promise; + Efl_Future *f; printf("TREE selected model\n"); - promise= efl_model_property_get(child, "path"); - eina_promise_then(promise, &_promise_then, &_promise_error, priv); + f = efl_model_property_get(child, "path"); + efl_ref(f); + efl_future_then(f, &_promise_then, &_promise_error, NULL, priv); + efl_future_link(event->object, f); + efl_unref(f); } static void --