actor-box: Constify arguments for union

The input arguments for clutter_actor_box_union() should be constified,
since they will not be modified by the function.
This commit is contained in:
Emmanuele Bassi 2010-10-04 11:27:16 +01:00
parent 45b6d7d47a
commit e1a1050a39
2 changed files with 9 additions and 9 deletions

View File

@ -9678,19 +9678,19 @@ clutter_actor_box_clamp_to_pixel (ClutterActorBox *box)
/**
* clutter_actor_box_union:
* @a: (in): the first #ClutterActorBox
* @a: (in): a second #ClutterActorBox
* @result: (out): the #ClutterActorBox representing a union of @a and
* @b
* @a: (in) the first #ClutterActorBox
* @b: (in): the second #ClutterActorBox
* @result: (out): the #ClutterActorBox representing a union
* of @a and @b
*
* Unions the two boxes @a and @b and stores the result in @result.
*
* Since: 1.4
*/
void
clutter_actor_box_union (ClutterActorBox *a,
ClutterActorBox *b,
ClutterActorBox *result)
clutter_actor_box_union (const ClutterActorBox *a,
const ClutterActorBox *b,
ClutterActorBox *result)
{
g_return_if_fail (a != NULL);
g_return_if_fail (b != NULL);

View File

@ -185,8 +185,8 @@ void clutter_actor_box_interpolate (const ClutterActorBox *initial
gdouble progress,
ClutterActorBox *result);
void clutter_actor_box_clamp_to_pixel (ClutterActorBox *box);
void clutter_actor_box_union (ClutterActorBox *a,
ClutterActorBox *b,
void clutter_actor_box_union (const ClutterActorBox *a,
const ClutterActorBox *b,
ClutterActorBox *result);
/**