diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-12-16 16:18:17 +0100 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-12-16 16:28:21 +0100 |
commit | 612528e090b1a92e5784d56610a600eb62479445 (patch) | |
tree | 4f32ac2eeff4773a1894c63c3e4fb84440014d93 | |
parent | a855e2024f598f2462b11496eabee807d518be37 (diff) | |
download | elementary-612528e090b1a92e5784d56610a600eb62479445.tar.gz |
naviframe: set better accessibility role and name
-rw-r--r-- | src/lib/elc_naviframe.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 441c418e6..0a7998a22 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -508,6 +508,16 @@ _elm_naviframe_item_elm_widget_item_part_text_set(Eo *eo_it EINA_UNUSED, if (_elm_config->access_mode) _access_obj_process(nit, EINA_TRUE); + memset(buf, 0x0, sizeof(buf)); + if (nit->title_label) + strncat(buf, nit->title_label, sizeof(buf) - 1); + if (nit->subtitle_label) + { + if (nit->title_label) strncat(buf, " ", 1); + strncat(buf, nit->subtitle_label, sizeof(buf) - strlen(buf) - 2); + } + eo_do(VIEW(it), elm_interface_atspi_accessible_name_set(buf)); + elm_layout_sizing_eval(WIDGET(nit)); } @@ -1222,6 +1232,10 @@ _item_new(Evas_Object *obj, if (!elm_widget_sub_object_add(obj, VIEW(it))) ERR("could not add %p as sub object of %p", VIEW(it), obj); + eo_do(VIEW(it), + elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_PAGE_TAB), + elm_interface_atspi_accessible_name_set((char*)title_label)); + evas_object_event_callback_add (VIEW(it), EVAS_CALLBACK_CHANGED_SIZE_HINTS, _on_item_size_hints_changed, obj); |