diff options
author | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2016-11-28 12:30:32 -0200 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2016-11-28 12:32:18 -0200 |
commit | 54abdad6e0c20111099ea3c58da3216d0e5ae2ca (patch) | |
tree | d58b1b0e79c7927f79b252d106f5ee12d4b11431 | |
parent | b132e1e1524f77d9c17e6672927970cee75ed16c (diff) | |
download | efl-54abdad6e0c20111099ea3c58da3216d0e5ae2ca.tar.gz |
elementary-cxx: Fix filemvc wrong usage of Efl_Future
-rw-r--r-- | src/examples/elementary/filemvc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c index 80fdede55e..0530e1a663 100644 --- a/src/examples/elementary/filemvc.c +++ b/src/examples/elementary/filemvc.c @@ -51,18 +51,20 @@ _list_selected_cb(void *data EINA_UNUSED, const Efl_Event *event) { Efl_Model_Test_Filemvc_Data *priv = data; Eo *child = event->info; -// ethumb_client_file_free(elm_thumb_ethumb_client_get()); + ethumb_client_file_free(elm_thumb_ethumb_client_get()); printf("LIST selected model\n"); elm_view_form_model_set(priv->formview, child); } static void -_promise_then(void *data, void *value) +_promise_then(void *data, const Efl_Event *event) { Efl_Model_Test_Filemvc_Data *priv = data; char *path; Eo *model; + Efl_Future_Event_Success* info = event->info; + Eina_Value* value = info->value; eina_value_get(value, &path); model = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_added, path)); @@ -70,7 +72,7 @@ _promise_then(void *data, void *value) } static void -_promise_error(void *data, const Eina_Error err) +_promise_error(void *data, const Efl_Event* err) { } |