diff --git a/ChangeLog b/ChangeLog index b62e1bffd..0bd9fba39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-11-13 Øyvind Kolås + + * clutter/clutter-behaviour-bspline.[ch]: + Replaced clutter_behaviour_bspline_append with + clutter_behaviour_bspline_append_knots. Fixes bug #582. + * clutter/clutter-deprecated.h: added deprecation macro reflecting the + API change. + 2007-11-13 Øyvind Kolås * clutter/Makefile.am: diff --git a/clutter/clutter-behaviour-bspline.c b/clutter/clutter-behaviour-bspline.c index f5d575368..529905221 100644 --- a/clutter/clutter-behaviour-bspline.c +++ b/clutter/clutter-behaviour-bspline.c @@ -860,7 +860,7 @@ clutter_behaviour_bspline_append_knots_valist (ClutterBehaviourBspline *bs, } /** - * clutter_behaviour_bspline_append: + * clutter_behaviour_bspline_append_knots * @bs: a #ClutterBehaviourBspline * @first_knot: first #ClutterKnot * @VarArgs: a NULL-terminated array of #ClutterKnot control points. @@ -869,12 +869,12 @@ clutter_behaviour_bspline_append_knots_valist (ClutterBehaviourBspline *bs, * bs and the array of #ClutterKnot control points to the orginal bezier spline * bs. * - * Since: 0.4 + * Since: 0.6 */ void -clutter_behaviour_bspline_append (ClutterBehaviourBspline * bs, - const ClutterKnot * first_knot, - ...) +clutter_behaviour_bspline_append_knots (ClutterBehaviourBspline * bs, + const ClutterKnot * first_knot, + ...) { va_list args; diff --git a/clutter/clutter-behaviour-bspline.h b/clutter/clutter-behaviour-bspline.h index f08dafc6e..981c86f9d 100644 --- a/clutter/clutter-behaviour-bspline.h +++ b/clutter/clutter-behaviour-bspline.h @@ -79,28 +79,28 @@ struct _ClutterBehaviourBsplineClass GType clutter_behaviour_bspline_get_type (void) G_GNUC_CONST; -ClutterBehaviour *clutter_behaviour_bspline_new (ClutterAlpha *alpha, - const ClutterKnot *knots, - guint n_knots); -void clutter_behaviour_bspline_append_knot (ClutterBehaviourBspline *bs, - const ClutterKnot *knot); -void clutter_behaviour_bspline_append (ClutterBehaviourBspline *bs, - const ClutterKnot *first_knot, - ...) G_GNUC_NULL_TERMINATED; -void clutter_behaviour_bspline_truncate (ClutterBehaviourBspline *bs, - guint offset); -void clutter_behaviour_bspline_join (ClutterBehaviourBspline *bs1, - ClutterBehaviourBspline *bs2); -ClutterBehaviour *clutter_behaviour_bspline_split (ClutterBehaviourBspline *bs, - guint offset); -void clutter_behaviour_bspline_clear (ClutterBehaviourBspline *bs); -void clutter_behaviour_bspline_adjust (ClutterBehaviourBspline *bs, - guint offset, - ClutterKnot *knot); -void clutter_behaviour_bspline_set_origin (ClutterBehaviourBspline *bs, - ClutterKnot *knot); -void clutter_behaviour_bspline_get_origin (ClutterBehaviourBspline *bs, - ClutterKnot *knot); +ClutterBehaviour *clutter_behaviour_bspline_new (ClutterAlpha *alpha, + const ClutterKnot *knots, + guint n_knots); +void clutter_behaviour_bspline_append_knot (ClutterBehaviourBspline *bs, + const ClutterKnot *knot); +void clutter_behaviour_bspline_append_knots (ClutterBehaviourBspline *bs, + const ClutterKnot *first_knot, + ...) G_GNUC_NULL_TERMINATED; +void clutter_behaviour_bspline_truncate (ClutterBehaviourBspline *bs, + guint offset); +void clutter_behaviour_bspline_join (ClutterBehaviourBspline *bs1, + ClutterBehaviourBspline *bs2); +ClutterBehaviour *clutter_behaviour_bspline_split (ClutterBehaviourBspline *bs, + guint offset); +void clutter_behaviour_bspline_clear (ClutterBehaviourBspline *bs); +void clutter_behaviour_bspline_adjust (ClutterBehaviourBspline *bs, + guint offset, + ClutterKnot *knot); +void clutter_behaviour_bspline_set_origin (ClutterBehaviourBspline *bs, + ClutterKnot *knot); +void clutter_behaviour_bspline_get_origin (ClutterBehaviourBspline *bs, + ClutterKnot *knot); G_END_DECLS diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h index 3ce7b7597..51fb475d3 100644 --- a/clutter/clutter-deprecated.h +++ b/clutter/clutter-deprecated.h @@ -15,5 +15,6 @@ #define clutter_behaviour_ellipse_set_angle_beginx cairo_behaviour_ellipse_set_angle_beginx_REPLACED_BY_clutter_behaviour_set_angle_startx #define clutter_behaviour_ellipse_get_angle_begin cairo_behaviour_ellipse_get_angle_begin_REPLACED_BY_clutter_behaviour_get_angle_start #define clutter_behaviour_ellipse_get_angle_beginx cairo_behaviour_ellipse_get_angle_beginx_REPLACED_BY_clutter_behaviour_get_angle_startx +#define clutter_behaviour_bspline_append clutter_behaviour_bspline_append_REPLACED_BY_clutter_behaviour_bspline_append_knots #endif /* CLUTTER_DEPRECATED_H */