edje: Add text change signal

There is no way to know about text changes in edc.
This signal will help developer to know about text changes
and do some operation based on that.

@feature

Co-authored-by: Cedric BAIL <cedric.bail@free.fr>

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10780
This commit is contained in:
Subodh Kumar 2019-12-03 10:56:00 +00:00 committed by Cedric BAIL
parent b8dc80c144
commit f86dbae7e3
1 changed files with 2 additions and 0 deletions

View File

@ -2043,6 +2043,8 @@ _edje_object_part_text_raw_generic_set(Edje *ed, Evas_Object *obj, Edje_Real_Par
_edje_recalc(ed);
if (ed->text_change.func)
ed->text_change.func(ed->text_change.data, obj, part);
edje_object_signal_emit(ed->obj, "edje,text,changed", "edje");
return EINA_TRUE;
}