diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-01-13 16:50:46 +0100 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-01-13 20:04:42 +0100 |
commit | 8c857816b19b7f34ca7099bd8e80ad8fc35caaf9 (patch) | |
tree | 038ace690f4df38b73021e10e0885abd45f76080 | |
parent | f5fd009992cd0cd6c1b61ecc0960290376451b56 (diff) | |
download | efl-8c857816b19b7f34ca7099bd8e80ad8fc35caaf9.tar.gz |
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.c | 3 |
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, f = efl_ui_selection_manager_selection_set(sel_man, obj, (Efl_Ui_Selection_Type)type, (Efl_Ui_Selection_Format)format, data, seatid); + if (!f) + return EINA_FALSE; + ldata->obj = obj; ldata->type = type; eina_future_then_easy(f, _selection_lost_cb, NULL, NULL, EINA_VALUE_TYPE_UINT, ldata); |