forked from enlightenment/efl
list: fixed list to emit elm,state,list,single signal when there is only
one item. This is a fix of a commit 44495f6431cdc5dbe6e8cb257cf73a69563ec67c.
This commit is contained in:
parent
473b183ebf
commit
ff18fac8e7
|
@ -741,7 +741,12 @@ _items_fix(Evas_Object *obj)
|
|||
edje_object_part_swallow
|
||||
(VIEW(it), "elm.swallow.end", it->end);
|
||||
}
|
||||
if (l == sd->items) //1st item
|
||||
if (eina_list_count(sd->items) == 1)
|
||||
{
|
||||
edje_object_signal_emit
|
||||
(VIEW(it), "elm,state,list,single", "elm");
|
||||
}
|
||||
else if (l == sd->items) //1st item
|
||||
{
|
||||
edje_object_signal_emit
|
||||
(VIEW(it), "elm,state,list,first", "elm");
|
||||
|
|
Loading…
Reference in New Issue