Elm list, like genlist, should emit 1st/middle/last signals to its items.

So that one is able to theme these cases accordingly.
This commit is contained in:
Gustavo Lima Chaves 2014-02-20 14:10:10 -03:00
parent 577d29a484
commit c80868da12
1 changed files with 15 additions and 0 deletions

View File

@ -741,6 +741,21 @@ _items_fix(Evas_Object *obj)
edje_object_part_swallow
(VIEW(it), "elm.swallow.end", it->end);
}
if (l == sd->items) //1st item
{
edje_object_signal_emit
(VIEW(it), "elm,state,list,first", "elm");
}
else if (l == eina_list_last(sd->items))
{
edje_object_signal_emit
(VIEW(it), "elm,state,list,last", "elm");
}
else
{
edje_object_signal_emit
(VIEW(it), "elm,state,list,middle", "elm");
}
}
if (!it->fixed)
{