summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-02 10:26:40 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-06 16:10:40 +0200
commit588745e9956ba622aadc9fe6f11988a372687d39 (patch)
treea9fd09013d9ae94db44582ddb8cc3f674d94eea4 /src/examples/elementary
parentb36e159d313bae4a6dd4e0c60deae0aef2309b50 (diff)
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
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/efl_ui_slideshow_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/efl_ui_slideshow_example.c b/src/examples/elementary/efl_ui_slideshow_example.c
index 55c1b66..6292f43 100644
--- a/src/examples/elementary/efl_ui_slideshow_example.c
+++ b/src/examples/elementary/efl_ui_slideshow_example.c
@@ -25,9 +25,9 @@ _show_next(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
25 efl_del(show_timer); 25 efl_del(show_timer);
26 show_timer = NULL; 26 show_timer = NULL;
27 27
28 int current_index = efl_ui_spotlight_active_index_get(container); 28 int current_index = efl_pack_index_get(container, efl_ui_spotlight_active_element_get(container));
29 int new_index = (current_index + 1) % efl_content_count(container); 29 int new_index = (current_index + 1) % efl_content_count(container);
30 efl_ui_spotlight_active_index_set(container, new_index); 30 efl_ui_spotlight_active_element_set(container, efl_pack_content_get(container, new_index));
31} 31}
32 32
33static void 33static void