aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-26 17:25:05 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-30 20:45:46 +0200
commit50a5d6e250f0ed2761e479faa727da2b2be00404 (patch)
tree5109ba6fc0eda42e6d2886691e02ae291950a878
parentefl_ui_pager: ensure deletion behavior (diff)
downloadefl-50a5d6e250f0ed2761e479faa727da2b2be00404.tar.gz
efl_ui_pager: implement content iterator
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8744
-rw-r--r--src/lib/elementary/efl_ui_pager.c7
-rw-r--r--src/lib/elementary/efl_ui_pager.eo1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c
index 6047aa8d91..c35695e9f7 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 9ac10db195..7879132d26 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