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:
Daniel Juyung Seo 2014-02-25 00:58:28 +09:00
parent 473b183ebf
commit ff18fac8e7
1 changed files with 6 additions and 1 deletions

View File

@ -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");