summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-13 16:50:46 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-13 20:04:42 +0100
commit8c857816b19b7f34ca7099bd8e80ad8fc35caaf9 (patch)
tree038ace690f4df38b73021e10e0885abd45f76080
parentf5fd009992cd0cd6c1b61ecc0960290376451b56 (diff)
efl_ui_selection: return ERRORS when setting the selection failed
this returns False on error, but does not print a error anymore, as this has been mainly what the selection code did. And in case you are running the buffer engine, this would just return no future at all. Differential Revision: https://phab.enlightenment.org/D11079
-rw-r--r--src/lib/elementary/efl_ui_selection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_selection.c b/src/lib/elementary/efl_ui_selection.c
index 675eb0cf99..d585814448 100644
--- a/src/lib/elementary/efl_ui_selection.c
+++ b/src/lib/elementary/efl_ui_selection.c
@@ -217,6 +217,9 @@ elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type type,
217 f = efl_ui_selection_manager_selection_set(sel_man, obj, (Efl_Ui_Selection_Type)type, 217 f = efl_ui_selection_manager_selection_set(sel_man, obj, (Efl_Ui_Selection_Type)type,
218 (Efl_Ui_Selection_Format)format, data, seatid); 218 (Efl_Ui_Selection_Format)format, data, seatid);
219 219
220 if (!f)
221 return EINA_FALSE;
222
220 ldata->obj = obj; 223 ldata->obj = obj;
221 ldata->type = type; 224 ldata->type = type;
222 eina_future_then_easy(f, _selection_lost_cb, NULL, NULL, EINA_VALUE_TYPE_UINT, ldata); 225 eina_future_then_easy(f, _selection_lost_cb, NULL, NULL, EINA_VALUE_TYPE_UINT, ldata);