aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2017-10-30 11:24:35 +0200
committerAndrii Kroitor <an.kroitor@samsung.com>2017-10-30 16:44:31 +0200
commite379397093216c94cb9609b52fa844d1dc380b21 (patch)
treea47e6dda649c90f22e8b0b62c9b8f5dd01b7cfbb /src/bin/edje
parentedje_cc: fix spelling (diff)
downloadefl-e379397093216c94cb9609b52fa844d1dc380b21.tar.gz
edje_cc: make bool parsing consistent
@fix
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_handlers.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 1d6a4af380..f5f961317c 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -10613,10 +10613,7 @@ st_collections_group_parts_part_description_image_border_scale(void)
ed = (Edje_Part_Description_Image*) current_desc;
- ed->image.border.scale = parse_enum(0,
- "0", 0,
- "1", 1,
- NULL);
+ ed->image.border.scale = parse_bool(0);
}
/**
@@ -14695,6 +14692,8 @@ _st_collections_group_parts_part_description_params(Edje_External_Param_Type typ
switch (type)
{
case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
+ param->i = parse_bool(1);
+ break;
case EDJE_EXTERNAL_PARAM_TYPE_INT:
param->i = parse_int(1);
break;
@@ -14770,7 +14769,7 @@ st_collections_group_parts_part_description_params_string(void)
@parameters
[param_name] [bool_value]
@effect
- Adds an boolean parameter for an external object. Value must be 0 or 1.
+ Adds an boolean parameter for an external object.
@endproperty
*/
static void