Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_embed.c Log Message: Wrap the tab focus. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_embed.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ewl_embed.c 2 Dec 2005 21:07:39 -0000 1.29 +++ ewl_embed.c 6 Dec 2005 07:26:14 -0000 1.30 @@ -1164,8 +1164,9 @@ if (e->last.focused) { ecore_dlist_goto(e->tab_order, e->last.focused); - w = ecore_dlist_next(e->tab_order); - if (!w) ecore_dlist_goto_first(e->tab_order); + ecore_dlist_next(e->tab_order); + if (!ecore_dlist_current(e->tab_order)) + ecore_dlist_goto_first(e->tab_order); } else ecore_dlist_goto_first(e->tab_order); @@ -1214,11 +1215,12 @@ if (e->last.focused) { ecore_dlist_goto(e->tab_order, e->last.focused); - w = ecore_dlist_previous(e->tab_order); - if (!w) ecore_dlist_goto_first(e->tab_order); + ecore_dlist_previous(e->tab_order); + if (!ecore_dlist_current(e->tab_order)) + ecore_dlist_goto_last(e->tab_order); } else - ecore_dlist_goto_first(e->tab_order); + ecore_dlist_goto_last(e->tab_order); w = ecore_dlist_current(e->tab_order); if (!w) DRETURN(DLEVEL_STABLE); ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs