summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-04-17 10:41:32 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-04-17 15:20:28 +0900
commitcf029754eb0463aeda6473bdc2959aabec542ca5 (patch)
tree3686fc20271f74fa76684b93f5968189031a90b2
parent6559f64d2806773775f2823288db382214c00d55 (diff)
Revert "Revert "efl_ui_pager: implement unpack_at function""
This reverts commit a10e1bc597f00865514f30d84268963dcbf3f599. To restore 913a5bff66dd7a58753ccae1474657ec33350e43 which implements features during feature freeze period, the revert commit is reverted.
-rw-r--r--src/lib/elementary/efl_ui_pager.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c
index bf81d1ac91..520398941c 100644
--- a/src/lib/elementary/efl_ui_pager.c
+++ b/src/lib/elementary/efl_ui_pager.c
@@ -853,12 +853,19 @@ _efl_ui_pager_efl_pack_unpack(Eo *obj,
853} 853}
854 854
855EOLIAN static Efl_Gfx_Entity * 855EOLIAN static Efl_Gfx_Entity *
856_efl_ui_pager_efl_pack_linear_pack_unpack_at(Eo *obj EINA_UNUSED, 856_efl_ui_pager_efl_pack_linear_pack_unpack_at(Eo *obj,
857 Efl_Ui_Pager_Data *pd EINA_UNUSED, 857 Efl_Ui_Pager_Data *pd,
858 int index EINA_UNUSED) 858 int index)
859{ 859{
860 ERR("Soon to be implemented"); 860 if (!EINA_DBL_EQ(pd->curr.pos, 0.0)) return NULL;
861 return NULL; 861
862 if ((index >= pd->cnt) || (index < 0)) return NULL;
863
864 Efl_Gfx_Entity *subobj = eina_list_nth(pd->content_list, index);
865
866 _unpack(obj, pd, subobj, index);
867
868 return subobj;
862} 869}
863 870
864 871