diff options
author | Vyacheslav Reutskiy <v.reutskiy@samsung.com> | 2013-11-04 15:41:51 +0900 |
---|---|---|
committer | Cedric Bail <cedric.bail@samsung.com> | 2013-11-04 15:41:54 +0900 |
commit | d9a72ccf8b4f03d78d7d781b031cac6f7c9377d0 (patch) | |
tree | c92c2cc9807b0e59cb327a4c9e7e089789ae527f /src | |
parent | c2c416fdf77017f49aa31a9744aeda9b114e7e61 (diff) |
edje: add string "default" to a default description of the part being build.
Fix deffect with a missing tokken 'state' in the first description block when
generated by edje_cc (It is perfectly valid to not specify the first description
name as it will always be "default").
Reviewers: cedric, seoz
Reviewed By: cedric
Differential Revision: https://phab.enlightenment.org/D310
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/edje/edje_cc_handlers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c index 76cf7e19a0..88ab25e3c2 100644 --- a/src/bin/edje/edje_cc_handlers.c +++ b/src/bin/edje/edje_cc_handlers.c | |||
@@ -5043,6 +5043,7 @@ ob_collections_group_parts_part_description(void) | |||
5043 | if (!ep->default_desc) | 5043 | if (!ep->default_desc) |
5044 | { | 5044 | { |
5045 | current_desc = ep->default_desc = ed; | 5045 | current_desc = ep->default_desc = ed; |
5046 | ed->state.name = strdup("default"); | ||
5046 | 5047 | ||
5047 | { /* Get the ptr of the part above current part in hierarchy */ | 5048 | { /* Get the ptr of the part above current part in hierarchy */ |
5048 | Edje_Part *node = edje_cc_handlers_hierarchy_parent_get(); | 5049 | Edje_Part *node = edje_cc_handlers_hierarchy_parent_get(); |
@@ -5413,6 +5414,7 @@ st_collections_group_parts_part_description_state(void) | |||
5413 | exit(-1); | 5414 | exit(-1); |
5414 | } | 5415 | } |
5415 | 5416 | ||
5417 | free((void *)ed->state.name); | ||
5416 | ed->state.name = s; | 5418 | ed->state.name = s; |
5417 | if (get_arg_count() == 1) | 5419 | if (get_arg_count() == 1) |
5418 | ed->state.value = 0.0; | 5420 | ed->state.value = 0.0; |