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>
This commit is contained in:
Vyacheslav Reutskiy 2013-11-04 15:41:51 +09:00 committed by Cedric Bail
parent c2c416fdf7
commit d9a72ccf8b
1 changed files with 2 additions and 0 deletions

View File

@ -5043,6 +5043,7 @@ ob_collections_group_parts_part_description(void)
if (!ep->default_desc)
{
current_desc = ep->default_desc = ed;
ed->state.name = strdup("default");
{ /* Get the ptr of the part above current part in hierarchy */
Edje_Part *node = edje_cc_handlers_hierarchy_parent_get();
@ -5413,6 +5414,7 @@ st_collections_group_parts_part_description_state(void)
exit(-1);
}
free((void *)ed->state.name);
ed->state.name = s;
if (get_arg_count() == 1)
ed->state.value = 0.0;