summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-02-29 11:32:52 +0000
committerTom Hacohen <tom@stosb.com>2016-02-29 11:33:41 +0000
commit9316ab5bf209f75971aebba32f0bc484ef5483c4 (patch)
tree95d4e00b3ca96bcaa7c5fbcf5a039e6bd36e3223 /legacy/elementary/src/lib/elm_interface_atspi_accessible.c
parentb22392d9379c10e21806fa03e8f58e215ff6edcf (diff)
Eo events: Migrate all of elm to the new event callback signatures
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/lib/elm_interface_atspi_accessible.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/legacy/elementary/src/lib/elm_interface_atspi_accessible.c b/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
index 19a020f0dc..19b198533e 100644
--- a/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
+++ b/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
@@ -343,10 +343,14 @@ _elm_interface_atspi_accessible_event_emit(Eo *class EINA_UNUSED, void *pd EINA_
343 return; 343 return;
344 } 344 }
345 345
346 Eo_Event ev;
347 ev.obj = accessible;
348 ev.desc = event;
349 ev.event_info = event_info;
346 EINA_LIST_FOREACH(global_callbacks, l, hdl) 350 EINA_LIST_FOREACH(global_callbacks, l, hdl)
347 { 351 {
348 if (hdl->cb) 352 if (hdl->cb)
349 hdl->cb(hdl->data, accessible, event, event_info); 353 hdl->cb(hdl->data, &ev);
350 } 354 }
351} 355}
352 356
@@ -411,7 +415,7 @@ elm_atspi_relation_clone(const Elm_Atspi_Relation *relation)
411} 415}
412 416
413static Eina_Bool 417static Eina_Bool
414_on_rel_obj_del(void *data, Eo *obj, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 418_on_rel_obj_del(void *data, const Eo_Event *event)
415{ 419{
416 Elm_Atspi_Relation_Set *set = data; 420 Elm_Atspi_Relation_Set *set = data;
417 Elm_Atspi_Relation *rel; 421 Elm_Atspi_Relation *rel;
@@ -422,7 +426,7 @@ _on_rel_obj_del(void *data, Eo *obj, const Eo_Event_Description *desc EINA_UNUSE
422 { 426 {
423 EINA_LIST_FOREACH_SAFE(rel->objects, p, p2, rel_obj) 427 EINA_LIST_FOREACH_SAFE(rel->objects, p, p2, rel_obj)
424 { 428 {
425 if (rel_obj == obj) 429 if (rel_obj == event->obj)
426 rel->objects = eina_list_remove_list(rel->objects, p); 430 rel->objects = eina_list_remove_list(rel->objects, p);
427 } 431 }
428 if (!rel->objects) 432 if (!rel->objects)