summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-22 17:13:43 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-11-30 14:58:17 -0800
commit1c238298ee1f191a54cbc2e52e700ef3c9b07292 (patch)
treed80f5d0691029222acb528e0cec3340e1fccb327 /src/lib/eio/eio_model.c
parent31eab2cff96d5bca6dc27c4ad720c07ac8dbab4d (diff)
eio: we do not need to actually loop explicitely for the loop here.
Actually efl_loop_future_scheduler_get does lookup on the object and its provider someone that could be a loop provider and find a scheduler. There is no need to custom look for a loop provider. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7338
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index b01e961..529582f 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -660,7 +660,6 @@ _eio_model_efl_model_property_set(Eo *obj,
660 Eio_Model_Data *pd, 660 Eio_Model_Data *pd,
661 const char *property, Eina_Value *value) 661 const char *property, Eina_Value *value)
662{ 662{
663 Eo *loop = efl_provider_find(obj, EFL_LOOP_CLASS);
664 const char *path; 663 const char *path;
665 Eina_Future *f; 664 Eina_Future *f;
666 Eina_Value s = EINA_VALUE_EMPTY; 665 Eina_Value s = EINA_VALUE_EMPTY;
@@ -683,7 +682,7 @@ _eio_model_efl_model_property_set(Eo *obj,
683 682
684 if (finalized) 683 if (finalized)
685 { 684 {
686 Eina_Promise *p = efl_loop_promise_new(loop, _efl_io_manager_future_cancel, NULL); 685 Eina_Promise *p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
687 f = eina_future_new(p); 686 f = eina_future_new(p);
688 687
689 pd->request.move = eio_file_move(pd->path, path, 688 pd->request.move = eio_file_move(pd->path, path,
@@ -697,14 +696,14 @@ _eio_model_efl_model_property_set(Eo *obj,
697 } 696 }
698 else 697 else
699 { 698 {
700 f = eina_future_resolved(efl_loop_future_scheduler_get(loop), 699 f = eina_future_resolved(efl_loop_future_scheduler_get(obj),
701 eina_value_string_init(pd->path)); 700 eina_value_string_init(pd->path));
702 } 701 }
703 702
704 return efl_future_then(obj, f); 703 return efl_future_then(obj, f);
705 704
706 on_error: 705 on_error:
707 return eina_future_rejected(efl_loop_future_scheduler_get(loop), err); 706 return eina_future_rejected(efl_loop_future_scheduler_get(obj), err);
708} 707}
709 708
710static void 709static void