aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadoslaw Cybulski <r.cybulski@partner.samsung.com>2019-04-30 11:59:53 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-02 18:14:42 +0200
commita69392e8380526c4adc2adf4a156415e5b1dca4e (patch)
treeb70377498837d19fdb161d7befe7037711d56e60
parentgfx_filter: add an example (diff)
downloadefl-a69392e8380526c4adc2adf4a156415e5b1dca4e.tar.gz
Fix for invalid ATSPI role on naviframe page element
ATSPI role page_tab was set on invalid object and thus ignored. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8789
-rw-r--r--src/lib/elementary/elc_naviframe.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c
index fa22902d90..7675b6103b 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -1283,8 +1283,6 @@ _item_new(Evas_Object *obj,
ELM_NAVIFRAME_DATA_GET(obj, sd);
eo_item = efl_add(ELM_NAVIFRAME_ITEM_CLASS, obj);
- efl_access_object_role_set(eo_item, EFL_ACCESS_ROLE_PAGE_TAB);
- efl_access_object_i18n_name_set(eo_item, (char*)title_label);
if (!eo_item)
{
@@ -1295,9 +1293,13 @@ _item_new(Evas_Object *obj,
ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it);
//item base layout
- VIEW_SET(it, elm_layout_add(obj));
+ Eo *elem = elm_layout_add(obj);
+ VIEW_SET(it, elem);
evas_object_smart_member_add(VIEW(it), obj);
+ efl_access_object_role_set(elem, EFL_ACCESS_ROLE_PAGE_TAB);
+ efl_access_object_i18n_name_set(elem, (char*)title_label);
+
if (!elm_widget_sub_object_add(obj, VIEW(it)))
ERR("could not add %p as sub object of %p", VIEW(it), obj);