Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : proto
Dir : e17/proto/esmart/src/container/layout/entice
Modified Files:
entice.c
Log Message:
scroll_to should work as expected now, and not throw us to the end of the
list if the elmement isn't ever found.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/esmart/src/container/layout/entice/entice.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- entice.c 15 Jan 2004 03:12:40 -0000 1.3
+++ entice.c 15 Jan 2004 19:22:48 -0000 1.4
@@ -148,12 +148,13 @@
{
if (cont && el)
{
+ int i = 0;
Evas_List *l;
- _entice_current = 1;
- for (l = cont->elements; l; l = l->next, _entice_current++)
+ for (l = cont->elements; l; l = l->next, i++)
{
if (el == l->data)
{
+ _entice_current = i;
_entice_layout (cont);
return;
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs