summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-02 16:25:36 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-02 18:30:26 +0100
commit6d2a9ae1f86449d773a103e277f8b7e1c2282a57 (patch)
tree4590a177cbddc1f75974d28e7fe35be2ef01493e /src/bin/elementary
parent509b1c8f6def820f88158a8cd4972685a5bea52b (diff)
introduce efl_ui_{pager/scroller}
They are just helpers, so a user does not need to handcreate spotlight managers. This also leaves us the possibility of letting spotlight_managers beeing @beta. ref T7991 Differential Revision: https://phab.enlightenment.org/D10773
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/test_ui_spotlight.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/elementary/test_ui_spotlight.c b/src/bin/elementary/test_ui_spotlight.c
index 281b55e..f38dfca 100644
--- a/src/bin/elementary/test_ui_spotlight.c
+++ b/src/bin/elementary/test_ui_spotlight.c
@@ -881,12 +881,10 @@ test_ui_spotlight_stack(void *data EINA_UNUSED,
881 efl_file_load(efl_added), 881 efl_file_load(efl_added),
882 efl_content_set(efl_part(panes, "second"), efl_added)); 882 efl_content_set(efl_part(panes, "second"), efl_added));
883 883
884 spotlight = efl_add(EFL_UI_SPOTLIGHT_CONTAINER_CLASS, layout, 884 spotlight = efl_add(EFL_UI_STACK_CLASS, layout,
885 efl_content_set(efl_part(layout, "pager"), efl_added), 885 efl_content_set(efl_part(layout, "pager"), efl_added),
886 efl_ui_spotlight_size_set(efl_added, EINA_SIZE2D(200, 300))); 886 efl_ui_spotlight_size_set(efl_added, EINA_SIZE2D(200, 300)));
887 887
888 efl_ui_spotlight_manager_set(spotlight, efl_new(EFL_UI_SPOTLIGHT_MANAGER_STACK_CLASS));
889
890 efl_add(EFL_UI_BUTTON_CLASS, layout, 888 efl_add(EFL_UI_BUTTON_CLASS, layout,
891 efl_text_set(efl_added, "Pop"), 889 efl_text_set(efl_added, "Pop"),
892 efl_event_callback_add(efl_added, 890 efl_event_callback_add(efl_added,
@@ -1073,12 +1071,10 @@ test_ui_spotlight_scroll(void *data EINA_UNUSED,
1073 efl_file_load(efl_added), 1071 efl_file_load(efl_added),
1074 efl_content_set(efl_part(panes, "second"), efl_added)); 1072 efl_content_set(efl_part(panes, "second"), efl_added));
1075 1073
1076 spotlight = efl_add(EFL_UI_SPOTLIGHT_CONTAINER_CLASS, layout, 1074 spotlight = efl_add(EFL_UI_PAGER_CLASS, layout,
1077 efl_content_set(efl_part(layout, "pager"), efl_added), 1075 efl_content_set(efl_part(layout, "pager"), efl_added),
1078 efl_ui_spotlight_size_set(efl_added, EINA_SIZE2D(200, 300))); 1076 efl_ui_spotlight_size_set(efl_added, EINA_SIZE2D(200, 300)));
1079 1077
1080 efl_ui_spotlight_manager_set(spotlight, efl_new(EFL_UI_SPOTLIGHT_MANAGER_SCROLL_CLASS));
1081
1082 efl_add(EFL_UI_BUTTON_CLASS, layout, 1078 efl_add(EFL_UI_BUTTON_CLASS, layout,
1083 efl_text_set(efl_added, "Prev"), 1079 efl_text_set(efl_added, "Prev"),
1084 efl_event_callback_add(efl_added, 1080 efl_event_callback_add(efl_added,