Hi list, the patch attached fixes bug:
http://trac.enlightenment.org/e/ticket/36

the bug actually has already been fixed in recent edje versions, but
for now SHR can use this patch for temporary recompile. It should be
safe to use it together with current EFL revisions used by shr-u.
Tested on many applications which makes use of dragable (shr-settings,
idle screen, call volume settings and my own apps).

Bye
-- 
daniele_athome
Index: trunk/edje/src/lib/edje_calc.c
===================================================================
--- trunk/edje/src/lib/edje_calc.c (revision 44794)
+++ trunk/edje/src/lib/edje_calc.c (revision 45060)
@@ -258,11 +258,11 @@
 	     else if (ep->part->dragable.y != 0) ret = 2;
 
-	     dx = SUB(ep->x, ep->drag->confine_to->x);
-	     dw = SUB(ep->drag->confine_to->w, ep->w);
+	     dx = FROM_INT(ep->x - ep->drag->confine_to->x);
+	     dw = FROM_INT(ep->drag->confine_to->w - ep->w);
 	     if (dw != ZERO) dx = DIV(dx, dw);
 	     else dx = ZERO;
 
-	     dy = SUB(ep->y, ep->drag->confine_to->y);
-	     dh = SUB(ep->drag->confine_to->h, ep->h);
+	     dy = FROM_INT(ep->y - ep->drag->confine_to->y);
+	     dh = FROM_INT(ep->drag->confine_to->h - ep->h);
 	     if (dh != ZERO) dy = DIV(dy, dh);
 	     else dy = ZERO;
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to