summaryrefslogtreecommitdiff
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
commit3d72d3fa0dfdfa690038b23776ba76fe6378f37b (patch)
treea936359fde89b3d87124a0be7150f444030ecc62
parentedc827f377d38c1cc1a14ea234adee4a62587eef (diff)
elm access: Added const for getters.
SVN revision: 82588
-rw-r--r--src/lib/elm_access.c14
-rw-r--r--src/lib/elm_access.h6
-rw-r--r--src/lib/elm_widget.h4
3 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/elm_access.c b/src/lib/elm_access.c
index dd3117261..8cef7f69a 100644
--- a/src/lib/elm_access.c
+++ b/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
diff --git a/src/lib/elm_access.h b/src/lib/elm_access.h
index fe84abad1..70f2b0bfe 100644
--- a/src/lib/elm_access.h
+++ b/src/lib/elm_access.h
@@ -50,7 +50,7 @@ EAPI void elm_access_object_item_unregister(Elm_Object_Item *item);
50 * 50 *
51 * @ingroup Access 51 * @ingroup Access
52 */ 52 */
53EAPI Evas_Object *elm_access_object_item_access_get(Elm_Object_Item *item); 53EAPI Evas_Object *elm_access_object_item_access_get(const Elm_Object_Item *item);
54 54
55/** 55/**
56 * @brief Register evas object as an accessible object. 56 * @brief Register evas object as an accessible object.
@@ -83,7 +83,7 @@ EAPI void elm_access_object_unregister(Evas_Object *obj);
83 * 83 *
84 * @ingroup Access 84 * @ingroup Access
85 */ 85 */
86EAPI Evas_Object *elm_access_object_access_get(Evas_Object *obj); 86EAPI Evas_Object *elm_access_object_access_get(const Evas_Object *obj);
87 87
88/** 88/**
89 * @brief Set text to give information for specific type. 89 * @brief Set text to give information for specific type.
@@ -108,7 +108,7 @@ EAPI void elm_access_text_set(Evas_Object *obj, int type, const char *text);
108 * @see elm_access_content_cb_set 108 * @see elm_access_content_cb_set
109 * @ingroup Access 109 * @ingroup Access
110 */ 110 */
111EAPI char *elm_access_text_get(Evas_Object *obj, int type); 111EAPI char *elm_access_text_get(const Evas_Object *obj, int type);
112 112
113/** 113/**
114 * @brief Set content callback to give information for specific type. 114 * @brief Set content callback to give information for specific type.
diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h
index c0ec8c307..3652f844f 100644
--- a/src/lib/elm_widget.h
+++ b/src/lib/elm_widget.h
@@ -489,8 +489,8 @@ struct _Elm_Access_Info
489EAPI void _elm_access_clear(Elm_Access_Info *ac); 489EAPI void _elm_access_clear(Elm_Access_Info *ac);
490EAPI void _elm_access_text_set(Elm_Access_Info *ac, int type, const char *text); 490EAPI void _elm_access_text_set(Elm_Access_Info *ac, int type, const char *text);
491EAPI void _elm_access_callback_set(Elm_Access_Info *ac, int type, Elm_Access_Content_Cb func, const void *data); 491EAPI void _elm_access_callback_set(Elm_Access_Info *ac, int type, Elm_Access_Content_Cb func, const void *data);
492EAPI char *_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj); /* this is ok it actually returns a strduped string - it's meant to! */ 492EAPI char *_elm_access_text_get(const Elm_Access_Info *ac, int type, const Evas_Object *obj); /* this is ok it actually returns a strduped string - it's meant to! */
493EAPI void _elm_access_read(Elm_Access_Info *ac, int type, Evas_Object *obj); 493EAPI void _elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj);
494EAPI void _elm_access_say(const char *txt); 494EAPI void _elm_access_say(const char *txt);
495EAPI Elm_Access_Info *_elm_access_object_get(const Evas_Object *obj); 495EAPI Elm_Access_Info *_elm_access_object_get(const Evas_Object *obj);
496EAPI void _elm_access_object_hilight(Evas_Object *obj); 496EAPI void _elm_access_object_hilight(Evas_Object *obj);