forked from enlightenment/efl
evas/textblock: add const for param in evas_object_textblock_style_set for consistency
This commit is contained in:
parent
d47bc40896
commit
c101d85541
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue