summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-06-04 14:42:52 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-06-04 14:42:52 +0900
commitd3e1cb055af590392898e49547c85705dbcb4e78 (patch)
tree55575477852c51d5490f85d8a54fc266b8375026
parent86f37578faf74be6748ac1eb40ea5bd0da57ba1c (diff)
edje - use Eina_Bool
-rw-r--r--src/lib/edje/edje_calc.c22
-rw-r--r--src/lib/edje/edje_edit.c12
-rw-r--r--src/lib/edje/edje_private.h10
3 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index a857fa2cf..c38c18ae1 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -3636,34 +3636,34 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
}
// handle smooth
- if (chosen_desc->map.smooth) evas_map_smooth_set(map, 1);
- else evas_map_smooth_set(map, 0);
+ if (chosen_desc->map.smooth) evas_map_smooth_set(map, EINA_TRUE);
+ else evas_map_smooth_set(map, EINA_FALSE);
// handle alpha
- if (chosen_desc->map.alpha) evas_map_alpha_set(map, 1);
- else evas_map_alpha_set(map, 0);
+ if (chosen_desc->map.alpha) evas_map_alpha_set(map, EINA_TRUE);
+ else evas_map_alpha_set(map, EINA_FALSE);
if (ep->nested_smart)
{ /* Apply map to smart obj holding nested parts */
- eo_do(ep->nested_smart,
- evas_obj_map_set(map),
- evas_obj_map_enable_set(1));
+ eo_do(ep->nested_smart,
+ evas_obj_map_set(map),
+ evas_obj_map_enable_set(EINA_TRUE));
}
else
{
if (mo)
eo_do(mo,
evas_obj_map_set(map),
- evas_obj_map_enable_set(1));
+ evas_obj_map_enable_set(EINA_TRUE));
}
}
else
{
if (ep->nested_smart)
{ /* Cancel map of smart obj holding nested parts */
- eo_do(ep->nested_smart,
- evas_obj_map_enable_set(0),
- evas_obj_map_set(NULL));
+ eo_do(ep->nested_smart,
+ evas_obj_map_enable_set(EINA_FALSE),
+ evas_obj_map_set(NULL));
}
else
{
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 0e772c534..7d87fd5a3 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -3038,12 +3038,12 @@ edje_edit_state_add(Evas_Object *obj, const char *part, const char *name, double
pd->map.rot.x = FROM_DOUBLE(0.0);
pd->map.rot.y = FROM_DOUBLE(0.0);
pd->map.rot.z = FROM_DOUBLE(0.0);
- pd->map.on = 0;
- pd->map.smooth = 1;
- pd->map.alpha = 1;
- pd->map.backcull = 0;
- pd->map.persp_on = 0;
- pd->persp.zplane = 0;
+ pd->map.on = EINA_FALSE;
+ pd->map.smooth = EINA_TRUE;
+ pd->map.alpha = EINA_TRUE;
+ pd->map.backcull = EINA_FALSE;
+ pd->map.persp_on = EINA_FALSE;
+ pd->persp.zplane = EINA_FALSE;
pd->persp.focal = 1000;
if (rp->part->type == EDJE_PART_TYPE_TEXT
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index a6a9c4784..c60c56b26 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -1036,11 +1036,11 @@ struct _Edje_Part_Description_Common
int id_center;
FLOAT_T x, y, z;
} rot;
- unsigned char backcull;
- unsigned char on;
- unsigned char persp_on;
- unsigned char smooth;
- unsigned char alpha;
+ Eina_Bool backcull;
+ Eina_Bool on;
+ Eina_Bool persp_on;
+ Eina_Bool smooth;
+ Eina_Bool alpha;
} map;
struct {