genlist: send a signal internally.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 29 Dec 2014 13:15:16 +0000 (22:15 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 29 Dec 2014 13:16:34 +0000 (22:16 +0900)
send a signal so that item set it's style according to it's depth

src/lib/elm_genlist.c

index f85229b..9346396 100644 (file)
@@ -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))
      {