* 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.
This commit is contained in:
Øyvind Kolås 2007-11-13 14:12:51 +00:00
parent 99370d1e0c
commit e4deda095c
4 changed files with 36 additions and 27 deletions

View File

@ -1,3 +1,11 @@
2007-11-13 Øyvind Kolås <pippin@o-hand.com>
* 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 <pippin@o-hand.com> 2007-11-13 Øyvind Kolås <pippin@o-hand.com>
* clutter/Makefile.am: * clutter/Makefile.am:

View File

@ -860,7 +860,7 @@ clutter_behaviour_bspline_append_knots_valist (ClutterBehaviourBspline *bs,
} }
/** /**
* clutter_behaviour_bspline_append: * clutter_behaviour_bspline_append_knots
* @bs: a #ClutterBehaviourBspline * @bs: a #ClutterBehaviourBspline
* @first_knot: first #ClutterKnot * @first_knot: first #ClutterKnot
* @VarArgs: a NULL-terminated array of #ClutterKnot control points. * @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 and the array of #ClutterKnot control points to the orginal bezier spline
* bs. * bs.
* *
* Since: 0.4 * Since: 0.6
*/ */
void void
clutter_behaviour_bspline_append (ClutterBehaviourBspline * bs, clutter_behaviour_bspline_append_knots (ClutterBehaviourBspline * bs,
const ClutterKnot * first_knot, const ClutterKnot * first_knot,
...) ...)
{ {
va_list args; va_list args;

View File

@ -79,28 +79,28 @@ struct _ClutterBehaviourBsplineClass
GType clutter_behaviour_bspline_get_type (void) G_GNUC_CONST; GType clutter_behaviour_bspline_get_type (void) G_GNUC_CONST;
ClutterBehaviour *clutter_behaviour_bspline_new (ClutterAlpha *alpha, ClutterBehaviour *clutter_behaviour_bspline_new (ClutterAlpha *alpha,
const ClutterKnot *knots, const ClutterKnot *knots,
guint n_knots); guint n_knots);
void clutter_behaviour_bspline_append_knot (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_append_knot (ClutterBehaviourBspline *bs,
const ClutterKnot *knot); const ClutterKnot *knot);
void clutter_behaviour_bspline_append (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_append_knots (ClutterBehaviourBspline *bs,
const ClutterKnot *first_knot, const ClutterKnot *first_knot,
...) G_GNUC_NULL_TERMINATED; ...) G_GNUC_NULL_TERMINATED;
void clutter_behaviour_bspline_truncate (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_truncate (ClutterBehaviourBspline *bs,
guint offset); guint offset);
void clutter_behaviour_bspline_join (ClutterBehaviourBspline *bs1, void clutter_behaviour_bspline_join (ClutterBehaviourBspline *bs1,
ClutterBehaviourBspline *bs2); ClutterBehaviourBspline *bs2);
ClutterBehaviour *clutter_behaviour_bspline_split (ClutterBehaviourBspline *bs, ClutterBehaviour *clutter_behaviour_bspline_split (ClutterBehaviourBspline *bs,
guint offset); guint offset);
void clutter_behaviour_bspline_clear (ClutterBehaviourBspline *bs); void clutter_behaviour_bspline_clear (ClutterBehaviourBspline *bs);
void clutter_behaviour_bspline_adjust (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_adjust (ClutterBehaviourBspline *bs,
guint offset, guint offset,
ClutterKnot *knot); ClutterKnot *knot);
void clutter_behaviour_bspline_set_origin (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_set_origin (ClutterBehaviourBspline *bs,
ClutterKnot *knot); ClutterKnot *knot);
void clutter_behaviour_bspline_get_origin (ClutterBehaviourBspline *bs, void clutter_behaviour_bspline_get_origin (ClutterBehaviourBspline *bs,
ClutterKnot *knot); ClutterKnot *knot);
G_END_DECLS G_END_DECLS

View File

@ -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_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_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_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 */ #endif /* CLUTTER_DEPRECATED_H */