summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-05 19:07:29 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-05 19:49:13 +0200
commit1bd9a8f232ec1891cc396d13d7106aa7c255d78e (patch)
tree5dd46a9b1a892eb2ceb718a3fd414dc3fd937491 /src/examples/elementary
parentfc12e7721fd2ea2b39f9a732522e744d43a66840 (diff)
introduce a new interface efl_ui_selectable
this is meant to be implemented by entities that *can* be selectabled (not to be confused with containers that can have selected contents)! ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9503
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/efl_ui_list_example_1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/efl_ui_list_example_1.c b/src/examples/elementary/efl_ui_list_example_1.c
index a778617..bb8aa40 100644
--- a/src/examples/elementary/efl_ui_list_example_1.c
+++ b/src/examples/elementary/efl_ui_list_example_1.c
@@ -28,7 +28,7 @@ _list_selected(void *data EINA_UNUSED, const Efl_Event *ev)
28{ 28{
29 Eo *list = ev->object; 29 Eo *list = ev->object;
30 Eo *item = ev->info, *tmp; 30 Eo *item = ev->info, *tmp;
31 printf("list item [%p:%d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_item_selected_get(item)? "selected" : "unselected")); 31 printf("list item [%p:%d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_selectable_selected_get(item)? "selected" : "unselected"));
32 32
33 Eina_Iterator *selects = efl_ui_collection_selected_items_get(list); 33 Eina_Iterator *selects = efl_ui_collection_selected_items_get(list);
34 34
@@ -42,7 +42,7 @@ static void
42_list_unselected(void *data EINA_UNUSED, const Efl_Event *ev) 42_list_unselected(void *data EINA_UNUSED, const Efl_Event *ev)
43{ 43{
44 Eo *item = ev->info; 44 Eo *item = ev->info;
45 printf("list item [%p : %d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_item_selected_get(item)? "selected" : "unselected")); 45 printf("list item [%p : %d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_selectable_selected_get(item)? "selected" : "unselected"));
46} 46}
47 47
48static void 48static void