summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-22 16:45:17 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-11-30 14:58:12 -0800
commitcc801e2e2aa625d282e60073eba17faa750e1f3c (patch)
tree18efd38b9bd1a0ca6383fc2608054f2023c1e355 /src/lib/elementary
parent6a8d4d8159f5744ad72e5fb5c69d22c9c3e0e8d0 (diff)
elementary: simplify code by using proper helper.
efl_loop_promise_new is a helper function that does automatically figure out an available scheduler and create a promise from it. Basically replacing the call to eina_promise_new(efl_loop_future_scheduler_get(o), ...). Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7336
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_selection_manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_selection_manager.c b/src/lib/elementary/efl_selection_manager.c
index fc0c503c79..42d66a9918 100644
--- a/src/lib/elementary/efl_selection_manager.c
+++ b/src/lib/elementary/efl_selection_manager.c
@@ -247,8 +247,7 @@ _update_sel_lost_list(Efl_Object *obj, Efl_Selection_Type type,
247 sel_lost->seat_sel = seat_sel; 247 sel_lost->seat_sel = seat_sel;
248 seat_sel->sel_lost_list = eina_list_append(seat_sel->sel_lost_list, sel_lost); 248 seat_sel->sel_lost_list = eina_list_append(seat_sel->sel_lost_list, sel_lost);
249 249
250 p = eina_promise_new(efl_loop_future_scheduler_get(obj), 250 p = efl_loop_promise_new(obj, _sel_manager_promise_cancel, NULL);
251 _sel_manager_promise_cancel, NULL);
252 eina_promise_data_set(p, sel_lost); 251 eina_promise_data_set(p, sel_lost);
253 if (!p) return NULL; 252 if (!p) return NULL;
254 sel_lost->promise = p; 253 sel_lost->promise = p;