eunue pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=716590db50832be9ba72ee8810abb15a5a93fa64
commit 716590db50832be9ba72ee8810abb15a5a93fa64 Author: Jaeun Choi <jaeun12.c...@samsung.com> Date: Wed Jan 23 21:17:29 2019 +0900 efl_ui_pager: set current page as -1 when pager is empty it makes more sense that the current page number is -1 when pager is empty since numbering starts from 0 when pager actually contains pages. this patch also fixes a bug in pack_begin function, in which the current page is increased by 1. --- src/lib/elementary/efl_ui_pager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c index 4b84ea795e..e0e3313906 100644 --- a/src/lib/elementary/efl_ui_pager.c +++ b/src/lib/elementary/efl_ui_pager.c @@ -339,7 +339,7 @@ _efl_ui_pager_efl_object_constructor(Eo *obj, pd->cnt = 0; pd->loop = EFL_UI_PAGER_LOOP_DISABLED; - pd->curr.page = 0; + pd->curr.page = -1; pd->curr.pos = 0.0; pd->transition = NULL; @@ -424,6 +424,7 @@ _efl_ui_pager_efl_pack_linear_pack_end(Eo *obj EINA_UNUSED, pd->content_list = eina_list_append(pd->content_list, subobj); pd->cnt++; + if (pd->curr.page == -1) pd->curr.page = 0; if (pd->transition) efl_page_transition_update(pd->transition, pd->curr.pos); --