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.
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;
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);