hermet pushed a commit to branch master.

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

commit ab15b9bb341d7c7dd7ca617101bdd392bce01874
Author: ChunEon Park <[email protected]>
Date:   Mon Dec 29 22:15:16 2014 +0900

    genlist: send a signal internally.
    
    send a signal so that item set it's style according to it's depth
---
 src/lib/elm_genlist.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index f85229b..9346396 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -1832,6 +1832,15 @@ _item_realize(Elm_Gen_Item *it,
         evas_object_smart_callback_call(WIDGET(it), SIG_REALIZED, EO_OBJ(it));
      }
 
+   //Send signal so that item set it's style according to it's depth
+   if (GL_IT(it)->expanded_depth > 0)
+     {
+        char buf[126];
+        snprintf(buf, sizeof(buf), "elm,state,expanded_depth,%d",
+                 GL_IT(it)->expanded_depth);
+        edje_object_signal_emit(VIEW(it), buf, "elm");
+     }
+
    if ((!calc) && (sd->decorate_all_mode) &&
        (it->item->type != ELM_GENLIST_ITEM_GROUP))
      {

-- 


Reply via email to