summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-11-11 13:01:52 +0200
committerYakov Goldberg <yakov.g@samsung.com>2013-11-11 13:17:03 +0200
commitc101d855419b26196121ac40b8d7cc421613310c (patch)
tree24ee3fad95f1438dfb9fef6473cb36ca0544472b /src
parentd47bc408964937771e15671be752d74fcb17b424 (diff)
evas/textblock: add const for param in evas_object_textblock_style_set for consistency
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/Evas_Eo.h2
-rw-r--r--src/lib/evas/Evas_Legacy.h2
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/evas/Evas_Eo.h b/src/lib/evas/Evas_Eo.h
index 717d434c5d..ada41e76f9 100644
--- a/src/lib/evas/Evas_Eo.h
+++ b/src/lib/evas/Evas_Eo.h
@@ -2330,7 +2330,7 @@ enum
2330 * 2330 *
2331 * @see evas_object_textblock_style_set 2331 * @see evas_object_textblock_style_set
2332 */ 2332 */
2333#define evas_obj_textblock_style_set(ts) EVAS_OBJ_TEXTBLOCK_ID(EVAS_OBJ_TEXTBLOCK_SUB_ID_STYLE_SET), EO_TYPECHECK(Evas_Textblock_Style *, ts) 2333#define evas_obj_textblock_style_set(ts) EVAS_OBJ_TEXTBLOCK_ID(EVAS_OBJ_TEXTBLOCK_SUB_ID_STYLE_SET), EO_TYPECHECK(const Evas_Textblock_Style *, ts)
2334 2334
2335/** 2335/**
2336 * @def evas_obj_textblock_style_get 2336 * @def evas_obj_textblock_style_get
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index e2dbf0ea41..2e6f449302 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -5621,7 +5621,7 @@ EAPI char *evas_textblock_text_utf8_to_markup
5621 * @param ts the style to set. 5621 * @param ts the style to set.
5622 * @return Returns no value. 5622 * @return Returns no value.
5623 */ 5623 */
5624EAPI void evas_object_textblock_style_set(Evas_Object *obj, Evas_Textblock_Style *ts) EINA_ARG_NONNULL(1); 5624EAPI void evas_object_textblock_style_set(Evas_Object *obj, const Evas_Textblock_Style *ts) EINA_ARG_NONNULL(1);
5625 5625
5626/** 5626/**
5627 * Return the style of an object. 5627 * Return the style of an object.
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 63cb70df11..4194aac385 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -5699,7 +5699,7 @@ _textblock_style_generic_set(Evas_Object *eo_obj, Evas_Textblock_Style *ts,
5699} 5699}
5700 5700
5701EAPI void 5701EAPI void
5702evas_object_textblock_style_set(Evas_Object *eo_obj, Evas_Textblock_Style *ts) 5702evas_object_textblock_style_set(Evas_Object *eo_obj, const Evas_Textblock_Style *ts)
5703{ 5703{
5704 eo_do(eo_obj, evas_obj_textblock_style_set(ts)); 5704 eo_do(eo_obj, evas_obj_textblock_style_set(ts));
5705} 5705}
@@ -5708,8 +5708,8 @@ static void
5708_textblock_style_set(Eo *eo_obj, void *_pd, va_list *list) 5708_textblock_style_set(Eo *eo_obj, void *_pd, va_list *list)
5709{ 5709{
5710 Evas_Object_Textblock *o = _pd; 5710 Evas_Object_Textblock *o = _pd;
5711 Evas_Textblock_Style *ts = va_arg(*list, Evas_Textblock_Style *); 5711 const Evas_Textblock_Style *ts = va_arg(*list, const Evas_Textblock_Style *);
5712 _textblock_style_generic_set(eo_obj, ts, &(o->style)); 5712 _textblock_style_generic_set(eo_obj, (Evas_Textblock_Style *) ts, &(o->style));
5713} 5713}
5714 5714
5715EAPI const Evas_Textblock_Style * 5715EAPI const Evas_Textblock_Style *