efl_ui_spotlight: migrate from active_index to active_element
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 2 Sep 2019 08:26:40 +0000 (10:26 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
commitdaa26a01eb15b428fff09fc96ab36ce8b8c17024
treee4a3addc19bc6e7661dcd99d4eeff12d670c9768
parent100c0ad1579bbdb57b8797741e86e2653025eec4
efl_ui_spotlight: migrate from active_index to active_element

after playing arround with the widget, we found out that it feels quite
weird to have a index, where most of the time you work with widgets.

We might want to add syntax suger in the future to make it easier to
just jump to the next element, or to the previous, but that still is to
be decided.

The event and the communication to the spotlight manager are still left
to be used with the index, reason for this is, that we might need to
fill there an invalid pointer, if a deletion is triggering an animation,
which seems quite weird. That needs further discussing.

Docx have been updated, the sitemarks about the shifting of the
active_index can be removed, as the element is not subject of change
during content adds/deletes.

ref T7991

Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Differential Revision: https://phab.enlightenment.org/D9813
13 files changed:
src/bin/elementary/test_ui_spotlight.c
src/bin/elementary/test_ui_tab_pager.c
src/examples/elementary/efl_ui_slideshow_example.c
src/lib/elementary/efl_ui_spotlight_container.c
src/lib/elementary/efl_ui_spotlight_container.eo
src/lib/elementary/efl_ui_spotlight_indicator.eo
src/lib/elementary/efl_ui_spotlight_manager.eo
src/lib/elementary/efl_ui_spotlight_manager_plain.c
src/lib/elementary/efl_ui_spotlight_manager_scroll.c
src/lib/elementary/efl_ui_spotlight_manager_stack.c
src/lib/elementary/efl_ui_tab_pager.c
src/lib/elementary/efl_ui_tab_pager.eo
src/tests/elementary/efl_ui_test_spotlight.c