jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=dd5e7c7019710ea3ed35ff7f953d161ed4867434

commit dd5e7c7019710ea3ed35ff7f953d161ed4867434
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Mon Sep 23 19:37:10 2019 +0900

    efl_ui_tab_pager: fix infinite selected calls
    
    Since tab_pager's _select() and tab_bar's _selection_change_cb() cause
    calling each other infinitely.
---
 src/lib/elementary/efl_ui_tab_pager.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_tab_pager.c 
b/src/lib/elementary/efl_ui_tab_pager.c
index 745a1dcb72..eb347ab99f 100644
--- a/src/lib/elementary/efl_ui_tab_pager.c
+++ b/src/lib/elementary/efl_ui_tab_pager.c
@@ -14,7 +14,10 @@
 static void
 _select(Eo *obj EINA_UNUSED, Efl_Ui_Tab_Page *page)
 {
-   efl_ui_selectable_selected_set(efl_ui_tab_page_tab_bar_item_get(page), 
EINA_TRUE);
+   Efl_Ui_Tab_Bar_Default_Item *item = efl_ui_tab_page_tab_bar_item_get(page);
+
+   if (!efl_ui_selectable_selected_get(item))
+     efl_ui_selectable_selected_set(item, EINA_TRUE);
 }
 
 static void

-- 


Reply via email to