summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-01-10 21:11:59 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-01-10 21:11:59 +0000
commit5ab9f4b980907ac0757e4c5127f34eb7735dbe53 (patch)
tree79cd2dcc2633bedd797d68bb7622df5f1e0b3f89 /legacy/elementary/src/lib/elm_access.c
parenta5f8da22e0e75f291c0ac582b43c0252331e0621 (diff)
elm access: Added const for getters.
SVN revision: 82588
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index dd31172..8cef7f6 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -344,7 +344,7 @@ _elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
344} 344}
345 345
346EAPI char * 346EAPI char *
347_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj) 347_elm_access_text_get(const Elm_Access_Info *ac, int type, const Evas_Object *obj)
348{ 348{
349 Elm_Access_Item *ai; 349 Elm_Access_Item *ai;
350 Eina_List *l; 350 Eina_List *l;
@@ -354,7 +354,7 @@ _elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj)
354 { 354 {
355 if (ai->type == type) 355 if (ai->type == type)
356 { 356 {
357 if (ai->func) return ai->func((void *)(ai->data), obj); 357 if (ai->func) return ai->func((void *)(ai->data), (Evas_Object *)obj);
358 else if (ai->data) return strdup(ai->data); 358 else if (ai->data) return strdup(ai->data);
359 return NULL; 359 return NULL;
360 } 360 }
@@ -363,7 +363,7 @@ _elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj)
363} 363}
364 364
365EAPI void 365EAPI void
366_elm_access_read(Elm_Access_Info *ac, int type, Evas_Object *obj) 366_elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj)
367{ 367{
368 char *txt = _elm_access_text_get(ac, type, obj); 368 char *txt = _elm_access_text_get(ac, type, obj);
369 369
@@ -787,7 +787,7 @@ elm_access_object_item_unregister(Elm_Object_Item *item)
787} 787}
788 788
789EAPI Evas_Object * 789EAPI Evas_Object *
790elm_access_object_item_access_get(Elm_Object_Item *item) 790elm_access_object_item_access_get(const Elm_Object_Item *item)
791{ 791{
792 if (!item) return NULL; 792 if (!item) return NULL;
793 793
@@ -807,7 +807,7 @@ elm_access_object_unregister(Evas_Object *obj)
807} 807}
808 808
809EAPI Evas_Object * 809EAPI Evas_Object *
810elm_access_object_access_get(Evas_Object *obj) 810elm_access_object_access_get(const Evas_Object *obj)
811{ 811{
812 return evas_object_data_get(obj, "_part_access_obj"); 812 return evas_object_data_get(obj, "_part_access_obj");
813} 813}
@@ -819,7 +819,7 @@ elm_access_text_set(Evas_Object *obj, int type, const char *text)
819} 819}
820 820
821EAPI char * 821EAPI char *
822elm_access_text_get(Evas_Object *obj, int type) 822elm_access_text_get(const Evas_Object *obj, int type)
823{ 823{
824 return _elm_access_text_get(_elm_access_object_get(obj), type, obj); 824 return _elm_access_text_get(_elm_access_object_get(obj), type, obj);
825} 825}
@@ -857,7 +857,7 @@ elm_access_external_info_get(const Evas_Object *obj)
857 Elm_Access_Info *ac; 857 Elm_Access_Info *ac;
858 858
859 ac = _elm_access_object_get(obj); 859 ac = _elm_access_object_get(obj);
860 return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, (Evas_Object *)obj); 860 return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj);
861} 861}
862 862
863static void 863static void