path: root/src/bin/elementary
diff options
authorMarcel Hollerbach <>2019-11-20 12:36:02 +0000
committerMarcel Hollerbach <>2019-11-25 13:31:24 +0100
commitf7868fd28cfc2a941601cd11e4598abf77e17c6c (patch)
treeb63288cbe76988f6b3bf387b63d9673179c2524b /src/bin/elementary
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 <> Differential Revision:
Diffstat (limited to 'src/bin/elementary')
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/elementary/test_ui_collection.c b/src/bin/elementary/test_ui_collection.c
index 2f74809..2397e14 100644
--- a/src/bin/elementary/test_ui_collection.c
+++ b/src/bin/elementary/test_ui_collection.c
@@ -8,13 +8,13 @@
8static void 8static void
9_all_select(void *data, const Efl_Event *ev EINA_UNUSED) 9_all_select(void *data, const Efl_Event *ev EINA_UNUSED)
10{ 10{
11 efl_ui_selectable_all_select(data); 11 efl_ui_multi_selectable_all_select(data);
12} 12}
13 13
14static void 14static void
15_all_unselect(void *data, const Efl_Event *ev EINA_UNUSED) 15_all_unselect(void *data, const Efl_Event *ev EINA_UNUSED)
16{ 16{
17 efl_ui_selectable_all_unselect(data); 17 efl_ui_multi_selectable_all_unselect(data);
18} 18}
19 19
20static void 20static void
@@ -168,7 +168,7 @@ _select_value_cb(void *data, const Efl_Event *ev)
168{ 168{
169 Efl_Ui_Collection *c = data; 169 Efl_Ui_Collection *c = data;
170 170
171 efl_ui_selectable_select_mode_set(c, efl_ui_radio_group_selected_value_get(ev->object)); 171 efl_ui_multi_selectable_select_mode_set(c, efl_ui_radio_group_selected_value_get(ev->object));
172} 172}
173 173
174void create_item_container_ui(const Efl_Class *collection_class, const Efl_Class *item, const char *name) 174void create_item_container_ui(const Efl_Class *collection_class, const Efl_Class *item, const char *name)