summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-07-04 16:02:43 -0700
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-05 19:18:22 +0200
commit47c5736ef9198c2b41d98ade601114f329b69b24 (patch)
treedd2a65058a99fbb20ded3ba222cd733cb93c6579 /src/examples/elementary
parentfaaba156ab35c32a740f3847cd592cd21424ff25 (diff)
elementary: rename Activew_View to Spotlight.
View is something that is expected in the context of MVVM, so using it somewhere else is going to lead to some confusion. Spotlight does descrive the objective of all of this widget in actually a more explicit way as they all give the spotlight to one sub widget at a time. I have also renamed the View_Manager to be just Manager as the View there wasn't useful.
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/efl_ui_slideshow_example.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/elementary/efl_ui_slideshow_example.c b/src/examples/elementary/efl_ui_slideshow_example.c
index fdf236e..4681037 100644
--- a/src/examples/elementary/efl_ui_slideshow_example.c
+++ b/src/examples/elementary/efl_ui_slideshow_example.c
@@ -2,7 +2,7 @@
2 2
3#include <Elementary.h> 3#include <Elementary.h>
4 4
5static Efl_Ui_Active_View_Container *container; 5static Efl_Ui_Spotlight_Container *container;
6static Eina_Bool play_state = EINA_FALSE; 6static Eina_Bool play_state = EINA_FALSE;
7static Efl_Loop_Timer *show_timer = NULL; 7static Efl_Loop_Timer *show_timer = NULL;
8 8
@@ -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_active_view_active_index_get(container); 28 int current_index = efl_ui_spotlight_active_index_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_active_view_active_index_set(container, new_index); 30 efl_ui_spotlight_active_index_set(container, new_index);
31} 31}
32 32
33static void 33static void
@@ -90,11 +90,11 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
90 table = efl_add(EFL_UI_TABLE_CLASS, win); 90 table = efl_add(EFL_UI_TABLE_CLASS, win);
91 efl_content_set(win, table); 91 efl_content_set(win, table);
92 92
93 container = efl_add(EFL_UI_ACTIVE_VIEW_CONTAINER_CLASS, win, 93 container = efl_add(EFL_UI_SPOTLIGHT_CONTAINER_CLASS, win,
94 efl_event_callback_add(efl_added, EFL_UI_ACTIVE_VIEW_EVENT_TRANSITION_END, _container_end, NULL), 94 efl_event_callback_add(efl_added, EFL_UI_SPOTLIGHT_EVENT_TRANSITION_END, _container_end, NULL),
95 efl_pack_table(table, efl_added, 0, 0, 1, 1)); 95 efl_pack_table(table, efl_added, 0, 0, 1, 1));
96 efl_ui_active_view_indicator_set(container, efl_new(EFL_UI_ACTIVE_VIEW_INDICATOR_ICON_CLASS)); 96 efl_ui_spotlight_indicator_set(container, efl_new(EFL_UI_SPOTLIGHT_INDICATOR_ICON_CLASS));
97 efl_ui_active_view_manager_set(container, efl_new(EFL_UI_ACTIVE_VIEW_VIEW_MANAGER_STACK_CLASS)); 97 efl_ui_spotlight_manager_set(container, efl_new(EFL_UI_SPOTLIGHT_MANAGER_STACK_CLASS));
98 98
99 for (int i = 0; i < IMG_NUM; i++) 99 for (int i = 0; i < IMG_NUM; i++)
100 { 100 {