summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorKim Shinwoo <kimcinoo.efl@gmail.com>2012-09-03 08:44:53 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-03 08:44:53 +0000
commit0bbfd9fc0b1ed0213302f6327a0804e829301ba4 (patch)
treed02b0592a3d6b29d81491517e169de5c673ce9e1 /legacy/elementary/src/lib/elm_access.c
parent1106692cdf54fabc2605b4cc01bac080c48fa360 (diff)
From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [patch][elementary] access - add activate callback till now, accessibility has used ecore_x_mouse_*_send(). the patch has activate callback which takes place of the ecore_x_mouse_*_send() stuff. if the access module is enabled and 'double tap' is detected, elm_win will receive ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL message with ECORE_X_ATOME_E_ILLUME_ACCESS_ACTION_ACTIVATE and call the activate callback for the accessibility. that's it. SVN revision: 75978
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index 4fcf087..2cb95ce 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -290,6 +290,29 @@ _elm_access_on_highlight_hook_set(Elm_Access_Info *ac,
290 ac->on_highlight_data = data; 290 ac->on_highlight_data = data;
291} 291}
292 292
293EAPI void
294_elm_access_activate_hook_set(Elm_Access_Info *ac,
295 Elm_Access_Activate_Cb func,
296 void *data)
297{
298 if (!ac) return;
299 ac->activate = func;
300 ac->activate_data = data;
301}
302
303EAPI void
304_elm_access_highlight_object_activate(Evas_Object *obj)
305{
306 Evas_Object *highlight_obj;
307 highlight_obj = elm_widget_focused_object_get(obj);
308
309 Elm_Access_Info *ac = evas_object_data_get(highlight_obj, "_elm_access");
310 if (!ac) return;
311
312 if (ac->activate)
313 ac->activate(highlight_obj, ac->activate_data);
314}
315
293EAPI char * 316EAPI char *
294_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj, Elm_Widget_Item *item) 317_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj, Elm_Widget_Item *item)
295{ 318{