elc_naviframe.c: Append title, subtitle while reading title and subtitle in naviframe.
authorShilpa Singh <shilpa.singh@samsung.com>
Mon, 13 Nov 2017 11:54:05 +0000 (20:54 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 13 Nov 2017 11:54:05 +0000 (20:54 +0900)
Summary: read title along with naviframe item title and subtitle along with naviframe subtitle.

Test Plan:
In accessibility mode, when naviframe title area is focused, The  text title and subtitle should be read
out along with item's title and subtitle.

Reviewers: kimcinoo

Reviewed By: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5463

src/lib/elementary/elc_naviframe.c

index 97d963e..94e14f8 100644 (file)
@@ -430,11 +430,14 @@ _access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
 
    buf = eina_strbuf_new();
    eina_strbuf_append(buf, info);
+   eina_strbuf_append_printf(buf, ", %s", N_("Title"));
 
    info = elm_object_part_text_get(layout, SUBTITLE_PART);
    if (!info) goto end;
+   if (!strcmp(info, "")) goto end;
 
    eina_strbuf_append_printf(buf, ", %s", info);
+   eina_strbuf_append_printf(buf, ", %s", N_("Subtitle"));
 
 end:
    ret = eina_strbuf_string_steal(buf);