summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-10-06 11:18:52 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commite24deab4afbf8d8036d5e0e9f3c37d466b6e8afb (patch)
treea180ea857e7cde15dd5282b3092fd07a4537e3c4
parentf076625be9c0d09b7d362b7e2ccbad8fe6314666 (diff)
list: set atspi parent despite atspi mode.
Path fixes failing test case when atspi mode was off.
-rw-r--r--src/lib/elm_list.c8
-rw-r--r--src/tests/elm_test_list.c2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 3a4e2fd99..c4b81a0b4 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -2337,6 +2337,7 @@ _item_new(Evas_Object *obj,
2337 evas_object_event_callback_add 2337 evas_object_event_callback_add
2338 (it->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb, 2338 (it->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
2339 obj); 2339 obj);
2340 eo_do(it->icon, elm_interface_atspi_accessible_parent_set(eo_it));
2340 } 2341 }
2341 if (it->end) 2342 if (it->end)
2342 { 2343 {
@@ -2344,14 +2345,11 @@ _item_new(Evas_Object *obj,
2344 evas_object_event_callback_add 2345 evas_object_event_callback_add
2345 (it->end, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb, 2346 (it->end, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
2346 obj); 2347 obj);
2348 eo_do(it->end, elm_interface_atspi_accessible_parent_set(eo_it));
2347 } 2349 }
2348 2350
2349 if (_elm_config->atspi_mode) 2351 if (_elm_config->atspi_mode)
2350 { 2352 elm_interface_atspi_accessible_added(eo_it);
2351 if (it->end) eo_do(it->end, elm_interface_atspi_accessible_parent_set(eo_it));
2352 if (it->icon) eo_do(it->icon, elm_interface_atspi_accessible_parent_set(eo_it));
2353 elm_interface_atspi_accessible_added(eo_it);
2354 }
2355 2353
2356 return it; 2354 return it;
2357} 2355}
diff --git a/src/tests/elm_test_list.c b/src/tests/elm_test_list.c
index b22e078cf..6ae7ab54c 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)
241 tcase_add_test(tc, elm_list_atspi_selection_all_children_select); 241 tcase_add_test(tc, elm_list_atspi_selection_all_children_select);
242 tcase_add_test(tc, elm_list_atspi_selection_clear); 242 tcase_add_test(tc, elm_list_atspi_selection_clear);
243 tcase_add_test(tc, elm_list_atspi_selection_child_deselect); 243 tcase_add_test(tc, elm_list_atspi_selection_child_deselect);
244 tcase_add_test(tc, elm_atspi_children_parent);
245#endif 244#endif
245 tcase_add_test(tc, elm_atspi_children_parent);
246} 246}