Enlightenment CVS committal Author : handyande Project : misc Module : engage
Dir : misc/engage/src/module Modified Files: e_mod_main.c Log Message: Latest patch from elm80, re-implements EAP_ORDER, thanks :) =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v retrieving revision 1.108 retrieving revision 1.109 diff -u -3 -r1.108 -r1.109 --- e_mod_main.c 20 Jan 2006 14:19:17 -0000 1.108 +++ e_mod_main.c 25 Feb 2006 17:44:09 -0000 1.109 @@ -489,7 +489,6 @@ case E_APP_ORDER: if (a == e->apps) { -/* FIXME - this is moving all .order icons to after the others - BAD for (ll = e->apps->subapps; ll; ll = ll->next) { Engage_Icon *ic; @@ -499,7 +498,31 @@ ic = _engage_icon_find(eb, a2); if (ic) _engage_icon_reorder_after(ic, NULL); } -*/ + Evas_List *nondots = NULL; + /* collect all ic that are not .order... */ + for (ll = eb->icons; ll; ll = ll->next) + { + Engage_Icon *ic; + + ic = ll->data; + if (ic->dotorder == 0) + { + nondots = evas_list_append(nondots, ic); + } + } + /* ...and put them at the end*/ + if (nondots) + { + for (; nondots; nondots = nondots->next) + { + Engage_Icon *ic; + + ic = nondots->data; + _engage_icon_reorder_after(ic, NULL); + } + evas_list_free(nondots); + } + _engage_bar_frame_resize(eb); } break; case E_APP_EXEC: ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs