From dd440c9f68b5f231a8099d0dfa5e38fd23e2156b Mon Sep 17 00:00:00 2001 From: abdulleh Ghujeh Date: Wed, 28 Aug 2019 15:04:51 +0000 Subject: [PATCH] efl_ui_text: EFL_UI_EVENT_SELECTION_CLEARED not called -Add a callback to ui_text for event EFL_UI_EVENT_SELECTION_CLEARED -Select any text in the ui_text -Clear selection by clicking any area by mouse or pressing arrows in keyboard -The selection get cleared but the callback will never be called. Reviewed-by: Tom Hacohen Differential Revision: https://phab.enlightenment.org/D9771 --- src/lib/elementary/efl_ui_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index 4e7004f02b..7b29f3e41e 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c @@ -3985,8 +3985,8 @@ _efl_ui_text_selection_changed_cb(void *data, const Efl_Event *event EINA_UNUSED if (!text || (text[0] == '\0')) { _edje_signal_emit(sd, "selection,cleared", "efl.text"); - sd->have_selection = EINA_FALSE; _selection_clear(data, 0); + sd->have_selection = EINA_FALSE; } else {