summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Ganicz <p.ganicz@samsung.com>2016-09-20 14:46:11 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-09-20 15:01:48 -0700
commit2cc7be3743890b3c25ebf69a9ee4aa839d366827 (patch)
treec34345f532d1a55bf1d1adc416d1fc09b4a0cdf7
parent445b3587e321c74fa23c401dda567dd5b27257b8 (diff)
atspi: fix parent-child relationship for elm_list and elm_toolbar
Summary: This patch provides proper parent-child relationship for elm_list and elm_toolbar while atsapi_mode is set for icon and end element. This patch is moved from: bf188e59431ad9c4ca877b2632884d3d430de6b1 Change-Id: Iae855aacf29bef3808a0b5ec159f46cbf0f4539d Reviewers: stanluk, cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4259 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elementary/elm_list.c6
-rw-r--r--src/lib/elementary/elm_toolbar.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c
index e126500932..9c0cbbc4da 100644
--- a/src/lib/elementary/elm_list.c
+++ b/src/lib/elementary/elm_list.c
@@ -2301,6 +2301,12 @@ _item_new(Evas_Object *obj,
2301 VIEW(it) = edje_object_add(evas_object_evas_get(obj)); 2301 VIEW(it) = edje_object_add(evas_object_evas_get(obj));
2302 edje_object_update_hints_set(VIEW(it), 1); 2302 edje_object_update_hints_set(VIEW(it), 1);
2303 2303
2304 if (_elm_config->atspi_mode)
2305 {
2306 if (it->icon) elm_interface_atspi_accessible_parent_set(it->icon, eo_it);
2307 if (it->end) elm_interface_atspi_accessible_parent_set(it->end, eo_it);
2308 }
2309
2304 /* access */ 2310 /* access */
2305 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) 2311 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
2306 _access_widget_item_register(it, EINA_TRUE); 2312 _access_widget_item_register(it, EINA_TRUE);
diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c
index 767b8b51e1..f73fd59b87 100644
--- a/src/lib/elementary/elm_toolbar.c
+++ b/src/lib/elementary/elm_toolbar.c
@@ -2492,6 +2492,9 @@ _item_new(Evas_Object *obj,
2492 2492
2493 icon_obj = elm_icon_add(VIEW(it)); 2493 icon_obj = elm_icon_add(VIEW(it));
2494 2494
2495 if (_elm_config->atspi_mode)
2496 if (icon_obj) elm_interface_atspi_accessible_parent_set(icon_obj, eo_it);
2497
2495 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) 2498 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
2496 _access_widget_item_register(it); 2499 _access_widget_item_register(it);
2497 2500