Use g_return_val_if_fail() in clutter_behaviour_is_applied().

Return FALSE if the parameters fail the ISA check, instead of returning void.
This commit is contained in:
Emmanuele Bassi 2007-04-16 10:25:19 +00:00
parent 43593ab81f
commit 1274e52f23

View File

@ -308,8 +308,8 @@ gboolean
clutter_behaviour_is_applied (ClutterBehaviour *behave,
ClutterActor *actor)
{
g_return_if_fail (CLUTTER_IS_BEHAVIOUR (behave));
g_return_if_fail (CLUTTER_IS_ACTOR (actor));
g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR (behave), FALSE);
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), FALSE);
return (g_slist_find (behave->priv->actors, actor) != NULL);
}