summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-19 16:29:39 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-03-19 16:29:39 -0400
commitc9cdb916cd7efe71f9aa6edde103bc0b84900175 (patch)
tree75daab1c7496ff4d196595c77b94a76f6b453fb1 /src/lib/elementary/efl_ui_list.c
parent06863ac18ec3547270e970df8472a590fb0438aa (diff)
Revert "efl_ui_selectable: namespace events to avoid conflicts"
Summary: This reverts commit f629f11bedad7b137b012d36102ad5bb1f2b4b4f. This breaks legacy events. As the selected event is used in legacy widgets. Also this commits mixed up two different concepts, selection in a entry etc. and selection of a item. Depends on D8411 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8412
Diffstat (limited to 'src/lib/elementary/efl_ui_list.c')
-rw-r--r--src/lib/elementary/efl_ui_list.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_list.c b/src/lib/elementary/efl_ui_list.c
index ff08383e39..bcaca6e10b 100644
--- a/src/lib/elementary/efl_ui_list.c
+++ b/src/lib/elementary/efl_ui_list.c
@@ -657,7 +657,7 @@ _list_item_selected(void *data, const Efl_Event *event)
657 pd->selected = eina_list_append(pd->selected, item); 657 pd->selected = eina_list_append(pd->selected, item);
658 pd->last_selected = item; 658 pd->last_selected = item;
659 659
660 efl_event_callback_call(obj, EFL_UI_EVENT_SELECTABLE_SELECTED, item); 660 efl_event_callback_call(obj, EFL_UI_EVENT_SELECTED, item);
661} 661}
662 662
663static void 663static void
@@ -670,7 +670,7 @@ _list_item_unselected(void *data, const Efl_Event *event)
670 pd->selected = eina_list_remove(pd->selected, item); 670 pd->selected = eina_list_remove(pd->selected, item);
671 if (pd->last_selected == item) pd->last_selected = NULL; 671 if (pd->last_selected == item) pd->last_selected = NULL;
672 672
673 efl_event_callback_call(obj, EFL_UI_EVENT_SELECTABLE_UNSELECTED, item); 673 efl_event_callback_call(obj, EFL_UI_EVENT_UNSELECTED, item);
674} 674}
675 675
676static Eina_Bool 676static Eina_Bool
@@ -689,8 +689,8 @@ _list_item_process(Eo *obj, Efl_Ui_List_Data *pd, EINA_UNUSED Efl_Ui_List_Item *
689 efl_event_callback_add(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj); 689 efl_event_callback_add(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj);
690 efl_event_callback_add(it, EFL_UI_EVENT_UNPRESSED, _list_item_unpressed, obj); 690 efl_event_callback_add(it, EFL_UI_EVENT_UNPRESSED, _list_item_unpressed, obj);
691 efl_event_callback_add(it, EFL_UI_EVENT_LONGPRESSED, _list_item_longpressed, obj); 691 efl_event_callback_add(it, EFL_UI_EVENT_LONGPRESSED, _list_item_longpressed, obj);
692 efl_event_callback_add(it, EFL_UI_EVENT_SELECTABLE_SELECTED, _list_item_selected, obj); 692 efl_event_callback_add(it, EFL_UI_EVENT_SELECTED, _list_item_selected, obj);
693 efl_event_callback_add(it, EFL_UI_EVENT_SELECTABLE_UNSELECTED, _list_item_unselected, obj); 693 efl_event_callback_add(it, EFL_UI_EVENT_UNSELECTED, _list_item_unselected, obj);
694 694
695 return EINA_TRUE; 695 return EINA_TRUE;
696} 696}
@@ -708,8 +708,8 @@ _list_item_clear(Eo *obj, Efl_Ui_List_Data *pd EINA_UNUSED, EINA_UNUSED Efl_Ui_L
708 efl_event_callback_del(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj); 708 efl_event_callback_del(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj);
709 efl_event_callback_del(it, EFL_UI_EVENT_UNPRESSED, _list_item_unpressed, obj); 709 efl_event_callback_del(it, EFL_UI_EVENT_UNPRESSED, _list_item_unpressed, obj);
710 efl_event_callback_del(it, EFL_UI_EVENT_LONGPRESSED, _list_item_longpressed, obj); 710 efl_event_callback_del(it, EFL_UI_EVENT_LONGPRESSED, _list_item_longpressed, obj);
711 efl_event_callback_del(it, EFL_UI_EVENT_SELECTABLE_SELECTED, _list_item_selected, obj); 711 efl_event_callback_del(it, EFL_UI_EVENT_SELECTED, _list_item_selected, obj);
712 efl_event_callback_del(it, EFL_UI_EVENT_SELECTABLE_UNSELECTED, _list_item_unselected, obj); 712 efl_event_callback_del(it, EFL_UI_EVENT_UNSELECTED, _list_item_unselected, obj);
713} 713}
714 714
715/* Pack APIs */ 715/* Pack APIs */