summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_naviframe.c
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 /src/lib/elementary/elc_naviframe.c
parent1aed64f2697321a0558cfd9a04183f11781e5ae5 (diff)
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
Diffstat (limited to 'src/lib/elementary/elc_naviframe.c')
-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 fa22902..7675b61 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -1283,8 +1283,6 @@ _item_new(Evas_Object *obj,
1283 ELM_NAVIFRAME_DATA_GET(obj, sd); 1283 ELM_NAVIFRAME_DATA_GET(obj, sd);
1284 1284
1285 eo_item = efl_add(ELM_NAVIFRAME_ITEM_CLASS, obj); 1285 eo_item = efl_add(ELM_NAVIFRAME_ITEM_CLASS, obj);
1286 efl_access_object_role_set(eo_item, EFL_ACCESS_ROLE_PAGE_TAB);
1287 efl_access_object_i18n_name_set(eo_item, (char*)title_label);
1288 1286
1289 if (!eo_item) 1287 if (!eo_item)
1290 { 1288 {
@@ -1295,9 +1293,13 @@ _item_new(Evas_Object *obj,
1295 ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it); 1293 ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it);
1296 1294
1297 //item base layout 1295 //item base layout
1298 VIEW_SET(it, elm_layout_add(obj)); 1296 Eo *elem = elm_layout_add(obj);
1297 VIEW_SET(it, elem);
1299 evas_object_smart_member_add(VIEW(it), obj); 1298 evas_object_smart_member_add(VIEW(it), obj);
1300 1299
1300 efl_access_object_role_set(elem, EFL_ACCESS_ROLE_PAGE_TAB);
1301 efl_access_object_i18n_name_set(elem, (char*)title_label);
1302
1301 if (!elm_widget_sub_object_add(obj, VIEW(it))) 1303 if (!elm_widget_sub_object_add(obj, VIEW(it)))
1302 ERR("could not add %p as sub object of %p", VIEW(it), obj); 1304 ERR("could not add %p as sub object of %p", VIEW(it), obj);
1303 1305