glima pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=44495f6431cdc5dbe6e8cb257cf73a69563ec67c

commit 44495f6431cdc5dbe6e8cb257cf73a69563ec67c
Author: Gustavo Lima Chaves <[email protected]>
Date:   Thu Feb 20 14:10:10 2014 -0300

    Elm list, like genlist, should emit 1st/middle/last signals to its items.
    
    So that one is able to theme these cases accordingly.
---
 src/lib/elm_list.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index bda2109..b441def 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -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)
                {

-- 


Reply via email to