summaryrefslogtreecommitdiff
path: root/src/examples/elementary/filemvc.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-11-07 11:10:49 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-07 11:10:49 -0800
commit5038f2551a0b09a1a3566768e41b58468267fef0 (patch)
tree25f1ac36fd1a05700d432e0c3e3298dc2646fc84 /src/examples/elementary/filemvc.c
parent9413b260b677cec47ca30c48e9b35f8b4ad8ce49 (diff)
elementary: update example to use Efl_Future.
Diffstat (limited to 'src/examples/elementary/filemvc.c')
-rw-r--r--src/examples/elementary/filemvc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c
index 4441df27ab..80fdede55e 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)
79{ 79{
80 Efl_Model_Test_Filemvc_Data *priv = data; 80 Efl_Model_Test_Filemvc_Data *priv = data;
81 Eo *child = event->info; 81 Eo *child = event->info;
82 Eina_Promise *promise; 82 Efl_Future *f;
83 83
84 printf("TREE selected model\n"); 84 printf("TREE selected model\n");
85 85
86 promise= efl_model_property_get(child, "path"); 86 f = efl_model_property_get(child, "path");
87 eina_promise_then(promise, &_promise_then, &_promise_error, priv); 87 efl_ref(f);
88 efl_future_then(f, &_promise_then, &_promise_error, NULL, priv);
89 efl_future_link(event->object, f);
90 efl_unref(f);
88} 91}
89 92
90static void 93static void