forked from enlightenment/efl
edje: use switch instead of N if-else with same commands
SVN revision: 80373
This commit is contained in:
parent
9f3c938c9c
commit
de5dac1a09
|
@ -8386,32 +8386,28 @@ st_collections_group_programs_program_target(void)
|
||||||
|
|
||||||
memcpy(copy, name, strlen(name) + 1);
|
memcpy(copy, name, strlen(name) + 1);
|
||||||
|
|
||||||
if (ep->action == EDJE_ACTION_TYPE_STATE_SET)
|
switch (ep->action)
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
{
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_ACTION_STOP)
|
case EDJE_ACTION_TYPE_ACTION_STOP:
|
||||||
data_queue_program_lookup(pc, name, &(et->id));
|
data_queue_program_lookup(pc, name, &(et->id));
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_SET)
|
break;
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
case EDJE_ACTION_TYPE_STATE_SET:
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_STEP)
|
case EDJE_ACTION_TYPE_DRAG_VAL_SET:
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
case EDJE_ACTION_TYPE_DRAG_VAL_STEP:
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_PAGE)
|
case EDJE_ACTION_TYPE_DRAG_VAL_PAGE:
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
case EDJE_ACTION_TYPE_FOCUS_SET:
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_FOCUS_SET)
|
case EDJE_ACTION_TYPE_FOCUS_OBJECT:
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_FOCUS_OBJECT)
|
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
|
||||||
#ifdef HAVE_EPHYSICS
|
#ifdef HAVE_EPHYSICS
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_PHYSICS_IMPULSE)
|
case EDJE_ACTION_TYPE_PHYSICS_IMPULSE:
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
case EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE:
|
||||||
else if (ep->action == EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE)
|
|
||||||
data_queue_part_lookup(pc, name, &(et->id));
|
|
||||||
#endif
|
#endif
|
||||||
else
|
data_queue_part_lookup(pc, name, &(et->id));
|
||||||
{
|
break;
|
||||||
ERR("parse error %s:%i. target may only be used after action",
|
default:
|
||||||
file_in, line - 1);
|
ERR("parse error %s:%i. target may only be used after action",
|
||||||
exit(-1);
|
file_in, line - 1);
|
||||||
}
|
exit(-1);
|
||||||
|
}
|
||||||
free(name);
|
free(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue