From: Prateek Thakur Date: Fri, 25 Mar 2022 04:54:24 +0000 (+0530) Subject: elm_entry: do not send clicked signal if disabled X-Git-Tag: accepted/tizen/unified/20220418.141309~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F272821%2F1;p=platform%2Fupstream%2Fefl.git elm_entry: do not send clicked signal if disabled Clicked signal was sent even when entry was disabled. Due to this application would receive clicked signal on disabled entry and can cause issue if they are taking any decision on this signal. Change-Id: I72ddfbfa1c9cade57cf9936440392b077e4caffb Signed-off-by: Prateek Thakur --- diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c index 81c19b1..a0ccc14 100644 --- a/src/lib/elementary/elm_entry.c +++ b/src/lib/elementary/elm_entry.c @@ -3806,6 +3806,8 @@ _entry_mouse_clicked_signal_cb(void *data, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) { + ELM_ENTRY_DATA_GET(data, sd); + if (sd->disabled) return; evas_object_smart_callback_call ( data, "clicked", NULL); }