summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-10 16:57:57 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-11 13:30:27 +0200
commitd512ff68ae41b71956c60d335216e93b33df2afb (patch)
tree11ca9e60398a44a100d8ac71d19bce8ce0a27f4e /src/lib/elementary/efl_ui_list.c
parentd30fc5f5d3a150ce847470caf5140719eef638cc (diff)
efl_ui_item: remove internal pointer to select_mode
there was this internal pointer to select_mode for getting the selection mode of the container. However, we now have API for checking this, so there is exactly 0 reason for doing this like this. Additionally, with the old way of doing, bildings like C# or lua are just lost, they cannot use this class at all in there implementations, as they cannot access the privat data. ref T905 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9263
Diffstat (limited to 'src/lib/elementary/efl_ui_list.c')
-rw-r--r--src/lib/elementary/efl_ui_list.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/elementary/efl_ui_list.c b/src/lib/elementary/efl_ui_list.c
index 971754ca88..bc7ee583a6 100644
--- a/src/lib/elementary/efl_ui_list.c
+++ b/src/lib/elementary/efl_ui_list.c
@@ -671,10 +671,6 @@ _list_item_process(Eo *obj, Efl_Ui_List_Data *pd, EINA_UNUSED Efl_Ui_List_Item *
671{ 671{
672 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it, EINA_FALSE); 672 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
673 673
674 //FIXME: This is tricky workaround for set select mode and parent value.
675 EFL_UI_LIST_ITEM_DATA_GET_OR_RETURN(it, ld, EINA_FALSE);
676 EFL_UI_ITEM_DATA_GET_OR_RETURN(it, id, EINA_FALSE);
677 id->select_mode = &(pd->select_mode);
678 efl_ui_item_container_set(it, obj); 674 efl_ui_item_container_set(it, obj);
679 efl_ui_mirrored_set(it, efl_ui_mirrored_get(obj)); 675 efl_ui_mirrored_set(it, efl_ui_mirrored_get(obj));
680 676
@@ -691,9 +687,6 @@ static void
691_list_item_clear(Eo *obj, Efl_Ui_List_Data *pd EINA_UNUSED, EINA_UNUSED Efl_Ui_List_Item *it) 687_list_item_clear(Eo *obj, Efl_Ui_List_Data *pd EINA_UNUSED, EINA_UNUSED Efl_Ui_List_Item *it)
692{ 688{
693 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it); 689 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it);
694 EFL_UI_LIST_ITEM_DATA_GET_OR_RETURN(it, ld);
695 EFL_UI_ITEM_DATA_GET_OR_RETURN(it, id);
696 id->select_mode = NULL;
697 efl_ui_item_container_set(it, NULL); 690 efl_ui_item_container_set(it, NULL);
698 691
699 efl_event_callback_del(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj); 692 efl_event_callback_del(it, EFL_UI_EVENT_PRESSED, _list_item_pressed, obj);