edje: fix internal colorclass field

Summary:
Its value is never modified directly and should not be modifiled by mistake
in future.

@fix

Reviewers: Hermet, raster, reutskiy.v.v, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3104

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Andrii Kroitor 2015-09-23 12:33:49 -07:00 committed by Cedric BAIL
parent c0d82ba900
commit d595149178
3 changed files with 3 additions and 3 deletions

View File

@ -6448,7 +6448,7 @@ edje_edit_state_color_class_set(Evas_Object *obj, const char *part, const char *
{
if (strcmp(cc->name, color_class) == 0)
{
pd->color_class = (char *)eina_stringshare_add(color_class);
pd->color_class = eina_stringshare_add(color_class);
edje_object_calc_force(obj);
return EINA_TRUE;
}

View File

@ -2819,7 +2819,7 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, Embryo_Cell *params)
{
Edje *ed = embryo_program_data_get(ep);
Edje_Real_Part *rp;
char *s;
const char *s;
/* we need at least 3 arguments */
if (params[0] < (int)(sizeof(Embryo_Cell) * 3))

View File

@ -1192,7 +1192,7 @@ struct _Edje_Part_Description_Common
Edje_Position step; /* size stepping by n pixels, 0 = none */
Edje_Aspect_Prefer aspect;
char *color_class; /* how to modify the color */
const char *color_class; /* how to modify the color */
Edje_Color color;
Edje_Color color2;