From: Enlightenment S. <no-...@en...> - 2009-03-19 19:03:38
|
Log: * e_actions: Use some eina macro. Author: cedric Date: 2009-03-19 12:03:35 -0700 (Thu, 19 Mar 2009) New Revision: 39591 Modified: trunk/e/src/bin/e_actions.c Modified: trunk/e/src/bin/e_actions.c =================================================================== --- trunk/e/src/bin/e_actions.c 2009-03-19 19:00:46 UTC (rev 39590) +++ trunk/e/src/bin/e_actions.c 2009-03-19 19:03:35 UTC (rev 39591) @@ -2899,11 +2899,10 @@ E_Action_Group *actg = NULL; E_Action_Description *actd = NULL; Eina_List *l, *l2; - - for (l = action_groups; l; l = l->next) + + EINA_LIST_FOREACH(action_groups, l, actg) { - actg = l->data; - for (l2 = actg->acts; l2; l2 = l2->next) + EINA_LIST_FOREACH(actg->acts, l2, actd) { actd = l2->data; if (!strcmp(actd->act_cmd, action)) @@ -2930,10 +2929,8 @@ if (!act_grp || !act_name) return; - for (l = action_groups; l; l = l->next) + EINA_LIST_FOREACH(action_groups, l, actg) { - actg = l->data; - if (!strcmp(actg->act_grp, act_grp)) break; actg = NULL; @@ -2953,9 +2950,8 @@ _action_groups_sort_cb); } - for (l = actg->acts; l; l = l->next) + EINA_LIST_FOREACH(actg->acts, l, actd) { - actd = l->data; if (!strcmp(actd->act_name, act_name)) break; actd = NULL; |