summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKateryna Fesyna <k.fesyna@samsung.com>2014-07-03 18:54:36 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-07-03 18:54:37 +0900
commitf0f5c393d0144e75862524765c4004aa02cbee75 (patch)
treefeaade11165b680b1006397ca3a437acc8f3cdfe
parent46a78e8c9d46225f3cd3d6b3c6eca3ab7361f361 (diff)
downloadefl-f0f5c393d0144e75862524765c4004aa02cbee75.tar.gz
edje_edit: fix edc code generation for image fill tipe parameter and PLAY_SAMPLE and PLAY_TONE actions.
Summary: This commit fixes edc code generation for image fill tipe parameter and PLAY_SAMPLE and PLAY_TONE actions. Reviewers: cedric, Hermet, seoz, raster, reutskiy.v.v CC: reutskiy.v.v, cedric Differential Revision: https://phab.enlightenment.org/D1091
-rw-r--r--src/lib/edje/edje_edit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index a701749beb..bb7f93b754 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -9589,7 +9589,7 @@ _edje_generate_source_of_program(Evas_Object *obj, const char *program, Eina_Str
case EDJE_ACTION_TYPE_SOUND_SAMPLE:
{
BUF_APPEND(I4"action: PLAY_SAMPLE ");
- BUF_APPENDF("\"%s\" %.000f", epr->sample_name, epr->speed);
+ BUF_APPENDF("\"%s\" %.4f", epr->sample_name, epr->speed);
switch (epr->channel)
{
case EDJE_CHANNEL_BACKGROUND:
@@ -9631,7 +9631,7 @@ _edje_generate_source_of_program(Evas_Object *obj, const char *program, Eina_Str
case EDJE_ACTION_TYPE_SOUND_TONE:
{
BUF_APPEND(I4"action: PLAY_TONE ");
- BUF_APPENDF("\"%s\" %.000f\n;", epr->tone_name, epr->duration);
+ BUF_APPENDF("\"%s\" %.4f\n;", epr->tone_name, epr->duration);
break;
}
//TODO Support Drag
@@ -9912,7 +9912,8 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
BUF_APPENDF(I7"offset: %d %d;\n", img->image.fill.abs_x, img->image.fill.abs_y);
BUF_APPEND(I6"}\n");
}
- BUF_APPEND(I6"type: TILE;\n");
+ if (img->image.fill.type == EDJE_FILL_TYPE_TILE)
+ BUF_APPEND(I6"type: TILE;\n");
BUF_APPEND(I5"}\n");
}