efl_ui_position_manager_list: support odd even styles
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 5 Sep 2019 08:38:56 +0000 (10:38 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
this was simply forgotten, but was part of the previous widget, so this
fixes the missing widget.

Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D9846

src/lib/elementary/efl_ui_position_manager_list.c

index dfdc6b0..df7c7c9 100644 (file)
@@ -238,8 +238,14 @@ _position_items(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd, Vis_
 
         if (ent)
           {
+             const char *signal;
              efl_gfx_entity_visible_set(ent, EINA_TRUE);
              efl_gfx_entity_geometry_set(ent, geom);
+             if (i % 2 == 0)
+               signal = "efl,state,even";
+             else
+               signal = "efl,state,odd";
+             efl_layout_signal_emit(ent, signal, "efl");
           }
         if (pd->dir == EFL_UI_LAYOUT_ORIENTATION_VERTICAL)
           geom.y += size.h;