Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_container.c Log Message: - only get the index if the child is found =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_container.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- ewl_container.c 8 Feb 2006 04:52:52 -0000 1.31 +++ ewl_container.c 8 Feb 2006 05:02:25 -0000 1.32 @@ -372,7 +372,6 @@ * Traverse the list to the child. */ temp = ecore_list_goto(pc->children, child); - idx = ecore_list_index(pc->children); /* * If the child isn't found, then this isn't it's parent. @@ -381,6 +380,9 @@ DRETURN(DLEVEL_STABLE); } + /* get the index of the widget we are removing */ + idx = ecore_list_index(pc->children); + /* * Remove the child from the parent and set the childs parent to NULL */ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs