diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-06-24 13:27:43 +0200 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-06-29 09:15:53 +0200 |
commit | 2705b5b578f1e84d76ac7e0ccbfba40ca55be7da (patch) | |
tree | 685e5791a4e7a948745a1c4cdc06103283b699b5 | |
parent | c79f46c0ef19de44071238540f1cb0134b05b89e (diff) | |
download | elementary-2705b5b578f1e84d76ac7e0ccbfba40ca55be7da.tar.gz |
selection refactor
Change-Id: I1dbf3ef9f356403bc7d85593e71b59d61b6b4e97
-rw-r--r-- | src/lib/elm_atspi_bridge.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c index 6480d9ac7..1265259fd 100644 --- a/src/lib/elm_atspi_bridge.c +++ b/src/lib/elm_atspi_bridge.c @@ -2954,31 +2954,16 @@ _window_signal_send(void *data, Eo *obj, const Eo_Event_Description *desc, void } static Eina_Bool -_selection_signal_send(void *data, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc, void *event_info EINA_UNUSED) +_selection_signal_send(void *data, Eo *obj, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) { - const char *event_desc; - ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN_VAL(data, pd, EINA_TRUE); - enum _Atspi_Object_Signals type; - if (desc == ELM_INTERFACE_ATSPI_SELECTION_EVENT_SELECTION_CHANGED) - { - event_desc = "SelectionChanged"; - type = ATSPI_OBJECT_EVENT_SELECTION_CHANGED; - } - else - { - WRN("ATSPI Selection event not handled"); - return EINA_FALSE; - } + if (!STATE_TYPE_GET(pd->object_broadcast_mask, ATSPI_OBJECT_EVENT_SELECTION_CHANGED)) + return EINA_FALSE; - if (!pd->ifcs.selection) - { - ERR("A11Y connection closed. Unable to send ATSPI event."); - return EINA_FALSE; - } + _bridge_signal_send(data, obj, ATSPI_DBUS_INTERFACE_EVENT_OBJECT, "SelectionChanged", "", 0, 0, "i", 0); - //_object_signal_send(pd->ifcs.selection, _bridge_object_id_get(data, obj), type, event_desc, 0, 0, "i", 0); + DBG("sent signal org.a11y.atspi.Event:SelectionChanged"); return EINA_TRUE; } |