summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2008-02-29 03:39:31 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2008-02-29 03:39:31 +0000
commitda7eabb8091c8b5ce491492ece205d1dff110a10 (patch)
tree92d00e583867e95380848686301d625335336d45 /legacy
parent46f07234a025160fdd79756ffb39f50e0b4b2632 (diff)
Just update dragable parameters if part is dragable.
SVN revision: 33867
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/src/lib/edje_calc.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/legacy/edje/src/lib/edje_calc.c b/legacy/edje/src/lib/edje_calc.c
index 4f8625e..2aa2fed 100644
--- a/legacy/edje/src/lib/edje_calc.c
+++ b/legacy/edje/src/lib/edje_calc.c
@@ -1387,11 +1387,16 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags)
1387 p3.req.w = INTP(p1.req.w, p2.req.w, pos); 1387 p3.req.w = INTP(p1.req.w, p2.req.w, pos);
1388 p3.req.h = INTP(p1.req.h, p2.req.h, pos); 1388 p3.req.h = INTP(p1.req.h, p2.req.h, pos);
1389 1389
1390 /* FIXME: detect when we do not have dragable set. */ 1390 if (ep->part->dragable.x)
1391 p3.req_drag.x = INTP(p1.req_drag.x, p2.req_drag.x, pos); 1391 {
1392 p3.req_drag.y = INTP(p1.req_drag.y, p2.req_drag.y, pos); 1392 p3.req_drag.x = INTP(p1.req_drag.x, p2.req_drag.x, pos);
1393 p3.req_drag.w = INTP(p1.req_drag.w, p2.req_drag.w, pos); 1393 p3.req_drag.w = INTP(p1.req_drag.w, p2.req_drag.w, pos);
1394 p3.req_drag.h = INTP(p1.req_drag.h, p2.req_drag.h, pos); 1394 }
1395 if (ep->part->dragable.y)
1396 {
1397 p3.req_drag.y = INTP(p1.req_drag.y, p2.req_drag.y, pos);
1398 p3.req_drag.h = INTP(p1.req_drag.h, p2.req_drag.h, pos);
1399 }
1395 1400
1396 p3.color.r = INTP(p1.color.r, p2.color.r, pos); 1401 p3.color.r = INTP(p1.color.r, p2.color.r, pos);
1397 p3.color.g = INTP(p1.color.g, p2.color.g, pos); 1402 p3.color.g = INTP(p1.color.g, p2.color.g, pos);