evas/textblock: add const for param in evas_object_textblock_style_set for consistency
authorYakov Goldberg <yakov.g@samsung.com>
Mon, 11 Nov 2013 11:01:52 +0000 (13:01 +0200)
committerYakov Goldberg <yakov.g@samsung.com>
Mon, 11 Nov 2013 11:17:03 +0000 (13:17 +0200)
src/lib/evas/Evas_Eo.h
src/lib/evas/Evas_Legacy.h
src/lib/evas/canvas/evas_object_textblock.c

index 717d434..ada41e7 100644 (file)
@@ -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
index e2dbf0e..2e6f449 100644 (file)
@@ -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.
index 63cb70d..4194aac 100644 (file)
@@ -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 *