From 264f895ad316ac4a540037d4fc3ca16d1e396807 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 25 Feb 2014 00:58:28 +0900 Subject: [PATCH] list: fixed list to emit elm,state,list,single signal when there is only one item. This is a fix of a commit 44495f6431cdc5dbe6e8cb257cf73a69563ec67c. --- src/lib/elm_list.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index b441def..c914978 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -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"); -- 2.7.4