summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-05 10:38:56 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-10 09:10:10 +0200
commit389dbd2524899db5575b524ebb442e6b7a88b2d2 (patch)
tree04c20bb2180c69eb5a9292dbdfe75a19cefcac81
parent267c57d0f10d4b1577181c8f7157b7bc2f8053a6 (diff)
efl_ui_position_manager_list: support odd even styles
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
-rw-r--r--src/lib/elementary/efl_ui_position_manager_list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_position_manager_list.c b/src/lib/elementary/efl_ui_position_manager_list.c
index dfdc6b0769..df7c7c9a8d 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -238,8 +238,14 @@ _position_items(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd, Vis_
238 238
239 if (ent) 239 if (ent)
240 { 240 {
241 const char *signal;
241 efl_gfx_entity_visible_set(ent, EINA_TRUE); 242 efl_gfx_entity_visible_set(ent, EINA_TRUE);
242 efl_gfx_entity_geometry_set(ent, geom); 243 efl_gfx_entity_geometry_set(ent, geom);
244 if (i % 2 == 0)
245 signal = "efl,state,even";
246 else
247 signal = "efl,state,odd";
248 efl_layout_signal_emit(ent, signal, "efl");
243 } 249 }
244 if (pd->dir == EFL_UI_LAYOUT_ORIENTATION_VERTICAL) 250 if (pd->dir == EFL_UI_LAYOUT_ORIENTATION_VERTICAL)
245 geom.y += size.h; 251 geom.y += size.h;