From: Shinwoo Kim Date: Tue, 12 Dec 2017 10:32:51 +0000 (+0530) Subject: elm:[atspi] block event which is not interested in X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~733 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcf4d0301d948c072def97480df3d1ea622efcde;p=platform%2Fupstream%2Fefl.git elm:[atspi] block event which is not interested in The following ATSPI dbus signal is not interested in. Moreover the following ATSPI dbus signal occurs a lot at init time. This could cause a performance issue. - 'ChildrenChanged' with added child - 'ChildrenChanged' with deleted child - 'AddAccessible' - 'RemoveAccessible' @tizen_fix orignal patch: 9f22a562423b272c4b39306c57771fadca5ee8f7 Change-Id: I208bf22092bd2678d270f3b895ae097a3e2e1c2d --- diff --git a/src/lib/elementary/efl_access.h b/src/lib/elementary/efl_access.h index 23123a6..92d7b27 100644 --- a/src/lib/elementary/efl_access.h +++ b/src/lib/elementary/efl_access.h @@ -144,20 +144,30 @@ EAPI Efl_Access_Relation_Set efl_access_relation_set_clone(const Efl_Access_Rela /** * Emits Accessible 'ChildrenChanged' signal with added child as argument. */ +//TIZEN_ONLY(20170923) Block event which is not interested in +#define efl_access_children_changed_added_signal_emit(obj, child) ((void)0)/* Empty */ +/* #define efl_access_children_changed_added_signal_emit(obj, child) \ do { \ Efl_Access_Event_Children_Changed_Data atspi_data = { EINA_TRUE, child }; \ efl_access_event_emit(EFL_ACCESS_MIXIN, obj, EFL_ACCESS_EVENT_CHILDREN_CHANGED, &atspi_data); \ } while(0); +*/ +// /** * Emits Accessible 'ChildrenChanged' signal with deleted child as argument. */ +//TIZEN_ONLY(20170923) Block event which is not interested in +#define efl_access_children_changed_del_signal_emit(obj, child) ((void)0)/* Empty */ +/* #define efl_access_children_changed_del_signal_emit(obj, child) \ do { \ Efl_Access_Event_Children_Changed_Data atspi_data = { EINA_FALSE, child }; \ efl_access_event_emit(EFL_ACCESS_MIXIN, obj, EFL_ACCESS_EVENT_CHILDREN_CHANGED, &atspi_data); \ } while(0); +*/ +// /** * Emits Accessible 'ActiveDescendantChanged' signal. @@ -174,14 +184,24 @@ EAPI Efl_Access_Relation_Set efl_access_relation_set_clone(const Efl_Access_Rela /** * Emits Accessible 'AddAccessible' signal. */ +//TIZEN_ONLY(20170923) Block event which is not interested in +#define efl_access_added(obj) ((void)0)/* Empty */ +/* #define efl_access_added(obj) \ efl_access_event_emit(EFL_ACCESS_MIXIN, obj, EFL_ACCESS_EVENT_ADDED, NULL); +*/ +// /** * Emits Accessible 'RemoveAccessible' signal. */ +//TIZEN_ONLY(20170923) Block event which is not interested in +#define efl_access_removed(obj) ((void)0)/* Empty */ +/* #define efl_access_removed(obj) \ efl_access_event_emit(EFL_ACCESS_MIXIN, obj, EFL_ACCESS_EVENT_REMOVED, NULL); +*/ +// #endif diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c index 313f483..92b06d9 100644 --- a/src/lib/elementary/elm_atspi_bridge.c +++ b/src/lib/elementary/elm_atspi_bridge.c @@ -6465,7 +6465,7 @@ static void _embedded_reply_cb(void *data, const Eldbus_Message *msg, Eldbus_Pen parent = efl_parent_get(proxy); if (parent) - efl_access_children_changed_added_signal_emit(parent, proxy) + efl_access_children_changed_added_signal_emit(parent, proxy); } static void