summaryrefslogtreecommitdiff
path: root/src/examples/elementary/filemvc.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-11-28 12:30:32 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-11-28 12:32:18 -0200
commit54abdad6e0c20111099ea3c58da3216d0e5ae2ca (patch)
treed58b1b0e79c7927f79b252d106f5ee12d4b11431 /src/examples/elementary/filemvc.c
parentb132e1e1524f77d9c17e6672927970cee75ed16c (diff)
elementary-cxx: Fix filemvc wrong usage of Efl_Future
Diffstat (limited to 'src/examples/elementary/filemvc.c')
-rw-r--r--src/examples/elementary/filemvc.c8
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)
51{ 51{
52 Efl_Model_Test_Filemvc_Data *priv = data; 52 Efl_Model_Test_Filemvc_Data *priv = data;
53 Eo *child = event->info; 53 Eo *child = event->info;
54// ethumb_client_file_free(elm_thumb_ethumb_client_get()); 54 ethumb_client_file_free(elm_thumb_ethumb_client_get());
55 55
56 printf("LIST selected model\n"); 56 printf("LIST selected model\n");
57 elm_view_form_model_set(priv->formview, child); 57 elm_view_form_model_set(priv->formview, child);
58} 58}
59 59
60static void 60static void
61_promise_then(void *data, void *value) 61_promise_then(void *data, const Efl_Event *event)
62{ 62{
63 Efl_Model_Test_Filemvc_Data *priv = data; 63 Efl_Model_Test_Filemvc_Data *priv = data;
64 char *path; 64 char *path;
65 Eo *model; 65 Eo *model;
66 Efl_Future_Event_Success* info = event->info;
67 Eina_Value* value = info->value;
66 68
67 eina_value_get(value, &path); 69 eina_value_get(value, &path);
68 model = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_added, path)); 70 model = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_added, path));
@@ -70,7 +72,7 @@ _promise_then(void *data, void *value)
70} 72}
71 73
72static void 74static void
73_promise_error(void *data, const Eina_Error err) 75_promise_error(void *data, const Efl_Event* err)
74{ 76{
75} 77}
76 78