summaryrefslogtreecommitdiff
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
parentd47bc408964937771e15671be752d74fcb17b424 (diff)
evas/textblock: add const for param in evas_object_textblock_style_set for consistency
-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 717d434c5..ada41e76f 100644
--- a/src/lib/evas/Evas_Eo.h
+++ b/src/lib/evas/Evas_Eo.h
@@ -2330,7 +2330,7 @@ enum
*
* @see evas_object_textblock_style_set
*/
-#define evas_obj_textblock_style_set(ts) EVAS_OBJ_TEXTBLOCK_ID(EVAS_OBJ_TEXTBLOCK_SUB_ID_STYLE_SET), EO_TYPECHECK(Evas_Textblock_Style *, ts)
+#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)
/**
* @def evas_obj_textblock_style_get
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index e2dbf0ea4..2e6f44930 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
* @param ts the style to set.
* @return Returns no value.
*/
-EAPI void evas_object_textblock_style_set(Evas_Object *obj, Evas_Textblock_Style *ts) EINA_ARG_NONNULL(1);
+EAPI void evas_object_textblock_style_set(Evas_Object *obj, const Evas_Textblock_Style *ts) EINA_ARG_NONNULL(1);
/**
* 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 63cb70df1..4194aac38 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,
}
EAPI void
-evas_object_textblock_style_set(Evas_Object *eo_obj, Evas_Textblock_Style *ts)
+evas_object_textblock_style_set(Evas_Object *eo_obj, const Evas_Textblock_Style *ts)
{
eo_do(eo_obj, evas_obj_textblock_style_set(ts));
}
@@ -5708,8 +5708,8 @@ static void
_textblock_style_set(Eo *eo_obj, void *_pd, va_list *list)
{
Evas_Object_Textblock *o = _pd;
- Evas_Textblock_Style *ts = va_arg(*list, Evas_Textblock_Style *);
- _textblock_style_generic_set(eo_obj, ts, &(o->style));
+ const Evas_Textblock_Style *ts = va_arg(*list, const Evas_Textblock_Style *);
+ _textblock_style_generic_set(eo_obj, (Evas_Textblock_Style *) ts, &(o->style));
}
EAPI const Evas_Textblock_Style *