Hi list.
In recent shr-unstable builds, there is a bug that involves all
dragable parts (sliders, toggles, idle screen slider, etc.): they
always return to zero/off.

This bug has been there for about a week, and SHR team says that in a
day or two they will bump EFL to revision 45060, which fixes that bug.
In the meantime, because the fix is very small (just 2 function calls,
a little change), I recompiled the revision of the Edje library used
by shr, patched with that fix, and tested on shr-unstable.

You can find the patch to the source code attached, and here is the
stripped library:
http://www.casaricci.it/binaries/libedje-ver-pre-svn-05.so.0.9.93

Just place it in /usr/lib while X is down :-)

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;
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to