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

View File

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