From: Lukasz Oleksak Date: Tue, 21 Apr 2020 07:28:20 +0000 (+0200) Subject: [atspi] Propagation of app_gesture_support attribute from content to base layout... X-Git-Tag: submit/tizen/20200505.220303~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e140d7fd4dd43e92a273e7f9ddb598f8cd54395;p=platform%2Fupstream%2Fefl.git [atspi] Propagation of app_gesture_support attribute from content to base layout of naviframe_item Change-Id: I65ba479fc0674dd918012a51096293f7f988a17e --- diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c index b90179a60f..57ec7f67db 100755 --- a/src/lib/elementary/elc_naviframe.c +++ b/src/lib/elementary/elc_naviframe.c @@ -1507,6 +1507,25 @@ _elm_naviframe_item_efl_object_constructor(Eo *eo_item, Elm_Naviframe_Item_Data return eo_item; } +static void +_propagate_app_gesture_support_attribute(Eo *elem, Evas_Object *content) +{ + Eina_List *attr_list = NULL, *l = NULL; + Efl_Access_Attribute *attr = NULL; + attr_list = efl_access_object_attributes_get(content); + + EINA_LIST_FOREACH(attr_list, l, attr) + { + if (!strncmp(attr->key, "app_gesture_support", 19)) + { + efl_access_object_attribute_append(elem, attr->key, attr->value); + break; + } + } + + efl_access_attributes_list_free(attr_list); +} + static Elm_Object_Item * _item_new(Evas_Object *obj, const Elm_Object_Item *eo_prev_it, @@ -1538,6 +1557,8 @@ _item_new(Evas_Object *obj, efl_access_object_role_set(elem, EFL_ACCESS_ROLE_PAGE_TAB); efl_access_object_i18n_name_set(elem, (char*)title_label); + _propagate_app_gesture_support_attribute (elem, content); + if (!elm_widget_sub_object_add(obj, VIEW(it))) ERR("could not add %p as sub object of %p", VIEW(it), obj);