From bcc323df24598ce5d6cf871d9ef394984b9b6350 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 26 Apr 2019 17:25:05 +0200 Subject: [PATCH] efl_ui_pager: implement content iterator Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D8744 --- src/lib/elementary/efl_ui_pager.c | 7 +++++++ src/lib/elementary/efl_ui_pager.eo | 1 + 2 files changed, 8 insertions(+) diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c index 6047aa8..c35695e 100644 --- a/src/lib/elementary/efl_ui_pager.c +++ b/src/lib/elementary/efl_ui_pager.c @@ -934,4 +934,11 @@ _efl_ui_pager_efl_pack_pack(Eo *obj, Efl_Ui_Pager_Data *pd EINA_UNUSED, Efl_Gfx_ return efl_pack_begin(obj, subobj); } +EOLIAN static Eina_Iterator* +_efl_ui_pager_efl_container_content_iterate(Eo *obj EINA_UNUSED, Efl_Ui_Pager_Data *pd) +{ + return eina_list_iterator_new(pd->content_list); +} + + #include "efl_ui_pager.eo.c" diff --git a/src/lib/elementary/efl_ui_pager.eo b/src/lib/elementary/efl_ui_pager.eo index 9ac10db..7879132 100644 --- a/src/lib/elementary/efl_ui_pager.eo +++ b/src/lib/elementary/efl_ui_pager.eo @@ -92,6 +92,7 @@ class @beta Efl.Ui.Pager extends Efl.Ui.Layout_Base implements Efl.Pack_Linear Efl.Object.constructor; Efl.Object.invalidate; Efl.Container.content_count; + Efl.Container.content_iterate; Efl.Pack.pack_clear; //TODO Efl.Pack.unpack_all; //TODO Efl.Pack.unpack; //TODO -- 2.7.4