summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKateryna Fesyna <k.fesyna@samsung.com>2014-12-09 03:07:27 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-09 03:13:56 +0100
commit2f8121d66ee6b414d20adbadc2991ac0281ab660 (patch)
tree1b13fae039795507c5844a63f04dcbd00cbd292b
parent624787c42a4edb1f900051cc2124f9f055d01ce2 (diff)
edje: Edje_Edit - add generation of missed properties of 'image' block.
Summary: add generation of missed parameters: scale_hint, border_scale and border_scale_by. Reviewers: Hermet, cedric, raster Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1741 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/edje/edje_edit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 0ba1905..369cd02 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10304,6 +10304,18 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10304 10304
10305 if (img->image.border.l || img->image.border.r || img->image.border.t || img->image.border.b) 10305 if (img->image.border.l || img->image.border.r || img->image.border.t || img->image.border.b)
10306 BUF_APPENDF(I6"border: %d %d %d %d;\n", img->image.border.l, img->image.border.r, img->image.border.t, img->image.border.b); 10306 BUF_APPENDF(I6"border: %d %d %d %d;\n", img->image.border.l, img->image.border.r, img->image.border.t, img->image.border.b);
10307 if (img->image.border.scale_by != 0.0)
10308 _edje_source_with_double_values_append(I6"border_scale_by", 1,
10309 TO_DOUBLE(img->image.border.scale_by),
10310 0.0, buf, &ret);
10311 if (img->image.border.scale)
10312 BUF_APPEND(I6"border_scale: 1;\n");
10313
10314 if (img->image.scale_hint == EVAS_IMAGE_SCALE_HINT_DYNAMIC)
10315 BUF_APPEND(I6"scale_hint: DYNAMIC;\n");
10316 else if (img->image.scale_hint == EVAS_IMAGE_SCALE_HINT_STATIC)
10317 BUF_APPEND(I6"scale_hint: STATIC;\n");
10318
10307 if (img->image.border.no_fill == 1) 10319 if (img->image.border.no_fill == 1)
10308 BUF_APPEND(I6"middle: NONE;\n"); 10320 BUF_APPEND(I6"middle: NONE;\n");
10309 else if (img->image.border.no_fill == 0) 10321 else if (img->image.border.no_fill == 0)