So far, the screen reader has used the first relation information.
So application should remove appended relation information, before appending
relation information newly. This is hard to use in some point of view.
The application used *append API as *set API.
So using last appended relation information makes more sense.
Change-Id: If83bcd2328fcda955d1eb8ea5fba600abfe1d687
Eina_List *l;
EINA_LIST_FOREACH(relations, l, rel)
{
- if (rel->type == expected_relation_type) return rel->objects ? rel->objects->data : NULL;
+ if (rel->type == expected_relation_type)
+ {
+ Eina_List *last = eina_list_last(rel->objects);
+ return eina_list_data_get(last);
+ }
}
}
return NULL;