summaryrefslogtreecommitdiff
path: root/src/examples/elementary/efl_ui_list_view_example_3.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-11-20 12:36:02 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-11-25 13:31:24 +0100
commitf7868fd28cfc2a941601cd11e4598abf77e17c6c (patch)
treeb63288cbe76988f6b3bf387b63d9673179c2524b /src/examples/elementary/efl_ui_list_view_example_3.c
parent3b743715a0812a426602e885ca3ce55c32407c35 (diff)
efl_ui_multi_selectable: clean this up
this commit merges common functions from efl_ui_multi_selectable and efl_ui_multi_selectable_async. Additionally, the two different aspects of accessing the elements in a multi_selectable widget (numerical or object based) are now abstracted into interfaces called range_numeric and range_object. numeric APIs are also prefixed with id's, so its possible for one widget to implement both (if there will ever be the demand to do that in future). The main reason for this split is: - there is no good common path between mvvm based multi_selectable and object based multi_Selectable, so there is no way that both sides would benefit, without the other one suffering. - If we find later on the demand to implement both on one widget, we now can fully do that - Common API is available for both types, so its less API and less confusion for the API user. ref T7871 ref T8265 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10675
Diffstat (limited to 'src/examples/elementary/efl_ui_list_view_example_3.c')
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/efl_ui_list_view_example_3.c b/src/examples/elementary/efl_ui_list_view_example_3.c
index c9f6b0db97..dcf6082926 100644
--- a/src/examples/elementary/efl_ui_list_view_example_3.c
+++ b/src/examples/elementary/efl_ui_list_view_example_3.c
@@ -110,7 +110,7 @@ static void
110_bt_none_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 110_bt_none_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
111{ 111{
112 Evas_Object *li = data; 112 Evas_Object *li = data;
113 efl_ui_multi_selectable_async_select_mode_set(li, EFL_UI_SELECT_MODE_NONE); 113 efl_ui_multi_selectable_select_mode_set(li, EFL_UI_SELECT_MODE_NONE);
114} 114}
115 115
116static void 116static void
@@ -124,7 +124,7 @@ static void
124_bt_default_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 124_bt_default_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
125{ 125{
126 Evas_Object *li = data; 126 Evas_Object *li = data;
127 efl_ui_multi_selectable_async_select_mode_set(li, EFL_UI_SELECT_MODE_SINGLE); 127 efl_ui_multi_selectable_select_mode_set(li, EFL_UI_SELECT_MODE_SINGLE);
128} 128}
129 129
130static void 130static void