hermet pushed a commit to branch master.

commit d3e1cb055af590392898e49547c85705dbcb4e78
Author: ChunEon Park <[email protected]>
Date:   Tue Jun 4 14:42:52 2013 +0900

    edje - use Eina_Bool
---
 src/lib/edje/edje_calc.c    | 22 +++++++++++-----------
 src/lib/edje/edje_edit.c    | 12 ++++++------
 src/lib/edje/edje_private.h | 10 +++++-----
 3 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index a857fa2..c38c18a 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 0e772c5..7d87fd5 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 a6a9c47..c60c56b 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 {

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to