summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2015-09-23 12:33:49 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-09-23 12:34:22 -0700
commitd595149178f8d81a9c24883541b09a912e3c15a8 (patch)
tree5f57347ccac287117145249ff3330396565b0745 /src
parentc0d82ba900fb57dee2db74ba867aa47b7ecf26dc (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_edit.c2
-rw-r--r--src/lib/edje/edje_embryo.c2
-rw-r--r--src/lib/edje/edje_private.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 908eee052f..601c4ba300 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -6448,7 +6448,7 @@ edje_edit_state_color_class_set(Evas_Object *obj, const char *part, const char *
6448 { 6448 {
6449 if (strcmp(cc->name, color_class) == 0) 6449 if (strcmp(cc->name, color_class) == 0)
6450 { 6450 {
6451 pd->color_class = (char *)eina_stringshare_add(color_class); 6451 pd->color_class = eina_stringshare_add(color_class);
6452 edje_object_calc_force(obj); 6452 edje_object_calc_force(obj);
6453 return EINA_TRUE; 6453 return EINA_TRUE;
6454 } 6454 }
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index b272594489..25956031c4 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -2819,7 +2819,7 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, Embryo_Cell *params)
2819{ 2819{
2820 Edje *ed = embryo_program_data_get(ep); 2820 Edje *ed = embryo_program_data_get(ep);
2821 Edje_Real_Part *rp; 2821 Edje_Real_Part *rp;
2822 char *s; 2822 const char *s;
2823 2823
2824 /* we need at least 3 arguments */ 2824 /* we need at least 3 arguments */
2825 if (params[0] < (int)(sizeof(Embryo_Cell) * 3)) 2825 if (params[0] < (int)(sizeof(Embryo_Cell) * 3))
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index 8fec707968..81f9fe293a 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -1192,7 +1192,7 @@ struct _Edje_Part_Description_Common
1192 Edje_Position step; /* size stepping by n pixels, 0 = none */ 1192 Edje_Position step; /* size stepping by n pixels, 0 = none */
1193 Edje_Aspect_Prefer aspect; 1193 Edje_Aspect_Prefer aspect;
1194 1194
1195 char *color_class; /* how to modify the color */ 1195 const char *color_class; /* how to modify the color */
1196 Edje_Color color; 1196 Edje_Color color;
1197 Edje_Color color2; 1197 Edje_Color color2;
1198 1198