summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-03 09:31:33 +0000
committerShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-03 09:31:33 +0000
commit88dac18cf7b877e8e3849071ae17c7079fd69ff9 (patch)
treeecd3a08481b249a6e6b1b07972b1b082e2802046 /legacy/elementary/src/lib/elm_access.c
parentf4e8c92f0d7cfe8b261dc37633ccf55c8fd6108f (diff)
[access] export elm_access_activate_cb_set(); and add related documentation.
SVN revision: 82052
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c45
1 files changed, 35 insertions, 10 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index d8659ff..a3eb798 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -28,7 +28,8 @@ _elm_access_smart_activate(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
28 if (!ac) return; 28 if (!ac) return;
29 29
30 if (ac->activate) 30 if (ac->activate)
31 ac->activate(ac->activate_data, ac->part_object, ac->widget_item); 31 ac->activate(ac->activate_data, ac->part_object,
32 (Elm_Object_Item *)ac->widget_item);
32 33
33 if (ret) *ret = EINA_TRUE; 34 if (ret) *ret = EINA_TRUE;
34} 35}
@@ -308,11 +309,23 @@ EAPI void
308_elm_access_highlight_object_activate(Evas_Object *obj, Elm_Activate act) 309_elm_access_highlight_object_activate(Evas_Object *obj, Elm_Activate act)
309{ 310{
310 Evas_Object *highlight; 311 Evas_Object *highlight;
312 Elm_Access_Info *ac;
311 313
312 highlight = _access_highlight_object_get(obj); 314 highlight = _access_highlight_object_get(obj);
313 if (!highlight) return; 315 if (!highlight) return;
314 316
315 elm_widget_activate(highlight, act); 317 if (elm_widget_is(highlight))
318 {
319 elm_widget_activate(highlight, act);
320 return;
321 }
322
323 ac = evas_object_data_get(highlight, "_elm_access");
324 if (!ac) return;
325
326 if (ac->activate)
327 ac->activate(ac->activate_data, highlight,
328 (Elm_Object_Item *)ac->widget_item);
316} 329}
317 330
318EAPI void 331EAPI void
@@ -801,14 +814,6 @@ elm_access_text_get(Evas_Object *obj, int type)
801} 814}
802 815
803EAPI void 816EAPI void
804elm_access_cb_set(Evas_Object *obj, int type,
805 Elm_Access_Content_Cb func, const void *data)
806{
807 _elm_access_callback_set(_elm_access_object_get(obj), type, func, data);
808}
809
810
811EAPI void
812elm_access_object_register(Evas_Object *parent, Evas_Object *target) 817elm_access_object_register(Evas_Object *parent, Evas_Object *target)
813{ 818{
814 Elm_Access_Info *ai; 819 Elm_Access_Info *ai;
@@ -852,6 +857,26 @@ elm_access_object_unregister(Evas_Object *obj)
852} 857}
853 858
854EAPI void 859EAPI void
860elm_access_content_cb_set(Evas_Object *obj, int type,
861 Elm_Access_Content_Cb func, const void *data)
862{
863 _elm_access_callback_set(_elm_access_object_get(obj), type, func, data);
864}
865
866EAPI void
867elm_access_activate_cb_set(Evas_Object *obj,
868 Elm_Access_Activate_Cb func, void *data)
869{
870 Elm_Access_Info *ac;
871
872 ac = _elm_access_object_get(obj);
873 if (!ac) return;
874
875 ac->activate = func;
876 ac->activate_data = data;
877}
878
879EAPI void
855elm_access_external_info_set(Evas_Object *obj, const char *text) 880elm_access_external_info_set(Evas_Object *obj, const char *text)
856{ 881{
857 _elm_access_text_set 882 _elm_access_text_set