edje_program: added signal "focus,part,out" when focus is discarded

Summary: @fix

Reviewers: cedric, seoz, Hermet

Reviewed By: Hermet

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1415
This commit is contained in:
Andrii Kroitor 2014-09-22 13:51:41 +09:00 committed by ChunEon Park
parent 6cbadc9735
commit 1bbf15899b
1 changed files with 6 additions and 1 deletions

View File

@ -898,7 +898,12 @@ low_mem_current:
break;
case EDJE_ACTION_TYPE_FOCUS_SET:
if (!pr->targets)
ed->focused_part = NULL;
{
if (ed->focused_part)
_edje_emit(ed, "focus,part,out",
ed->focused_part->part->name);
ed->focused_part = NULL;
}
else
{
EINA_LIST_FOREACH(pr->targets, l, pt)