stanluk pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=81eddb8c261ed3d59550f18ccc839e122e3654d3

commit 81eddb8c261ed3d59550f18ccc839e122e3654d3
Author: Lukasz Stanislawski <l.stanisl...@samsung.com>
Date:   Tue Oct 6 11:18:52 2015 +0200

    list: set atspi parent despite atspi mode.
    
    Path fixes failing test case when atspi mode was off.
---
 src/lib/elm_list.c        | 8 +++-----
 src/tests/elm_test_list.c | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 3a4e2fd..c4b81a0 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -2337,6 +2337,7 @@ _item_new(Evas_Object *obj,
         evas_object_event_callback_add
           (it->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
           obj);
+        eo_do(it->icon, elm_interface_atspi_accessible_parent_set(eo_it));
      }
    if (it->end)
      {
@@ -2344,14 +2345,11 @@ _item_new(Evas_Object *obj,
         evas_object_event_callback_add
           (it->end, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
           obj);
+        eo_do(it->end, elm_interface_atspi_accessible_parent_set(eo_it));
      }
 
    if (_elm_config->atspi_mode)
-     {
-        if (it->end) eo_do(it->end, 
elm_interface_atspi_accessible_parent_set(eo_it));
-        if (it->icon) eo_do(it->icon, 
elm_interface_atspi_accessible_parent_set(eo_it));
-        elm_interface_atspi_accessible_added(eo_it);
-     }
+     elm_interface_atspi_accessible_added(eo_it);
 
    return it;
 }
diff --git a/src/tests/elm_test_list.c b/src/tests/elm_test_list.c
index b22e078..6ae7ab5 100644
--- a/src/tests/elm_test_list.c
+++ b/src/tests/elm_test_list.c
@@ -241,6 +241,6 @@ void elm_test_list(TCase *tc)
  tcase_add_test(tc, elm_list_atspi_selection_all_children_select);
  tcase_add_test(tc, elm_list_atspi_selection_clear);
  tcase_add_test(tc, elm_list_atspi_selection_child_deselect);
- tcase_add_test(tc, elm_atspi_children_parent);
 #endif
+ tcase_add_test(tc, elm_atspi_children_parent);
 }

-- 


Reply via email to