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: Id7c3e7dc02acc0a883eb7e55b3892461aee259a3
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;