From: Shinwoo Kim Date: Fri, 9 Dec 2016 23:36:31 +0000 (+0900) Subject: elementary: set atspi role before sending a signal X-Git-Tag: upstream/1.20.0~2935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7605fbc9d0ee026f07c080e1565c52082dd68131;p=platform%2Fupstream%2Fefl.git elementary: set atspi role before sending a signal It is necessary to check atspi role before sending a object:state-changed:showing signal. The signal is fired when _elm_widget_efl_gfx_visible_set is called. --- diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c index de7f635..57e1b03 100644 --- a/src/lib/elementary/elc_naviframe.c +++ b/src/lib/elementary/elc_naviframe.c @@ -1235,14 +1235,13 @@ _item_new(Evas_Object *obj, //item base layout VIEW(it) = elm_layout_add(obj); + elm_interface_atspi_accessible_role_set(VIEW(it), ELM_ATSPI_ROLE_PAGE_TAB); + elm_interface_atspi_accessible_name_set(VIEW(it), (char*)title_label); evas_object_smart_member_add(VIEW(it), obj); if (!elm_widget_sub_object_add(obj, VIEW(it))) ERR("could not add %p as sub object of %p", VIEW(it), obj); - elm_interface_atspi_accessible_role_set(VIEW(it), ELM_ATSPI_ROLE_PAGE_TAB); - elm_interface_atspi_accessible_name_set(VIEW(it), (char*)title_label); - evas_object_event_callback_add (VIEW(it), EVAS_CALLBACK_CHANGED_SIZE_HINTS, _on_item_size_hints_changed, obj);