seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=264f895ad316ac4a540037d4fc3ca16d1e396807

commit 264f895ad316ac4a540037d4fc3ca16d1e396807
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Tue Feb 25 00:58:28 2014 +0900

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

-- 


Reply via email to