diff --git a/ChangeLog b/ChangeLog index 6ee830f53c..a03de1616b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-01-12 Michael Natterer + + * app/vectors/gimpanchor.[ch]: renamed gimp_anchor_duplicate() + to gimp_anchor_copy(). + + * app/vectors/gimpstroke.c (gimp_stroke_real_duplicate): changed + accordingly. + 2007-01-12 Michael Natterer * app/core/gimpdashpattern.[ch]: register GIMP_TYPE_DASH_PATTERN diff --git a/app/vectors/gimpanchor.c b/app/vectors/gimpanchor.c index a07b434423..f792ed31cc 100644 --- a/app/vectors/gimpanchor.c +++ b/app/vectors/gimpanchor.c @@ -35,13 +35,12 @@ gimp_anchor_get_type (void) if (!anchor_type) anchor_type = g_boxed_type_register_static ("GimpAnchor", - (GBoxedCopyFunc) gimp_anchor_duplicate, + (GBoxedCopyFunc) gimp_anchor_copy, (GBoxedFreeFunc) gimp_anchor_free); return anchor_type; } - GimpAnchor * gimp_anchor_new (GimpAnchorType type, const GimpCoords *position) @@ -56,14 +55,14 @@ gimp_anchor_new (GimpAnchorType type, return anchor; } +GimpAnchor * +gimp_anchor_copy (const GimpAnchor *anchor) +{ + return g_memdup (anchor, sizeof (GimpAnchor)); +} + void gimp_anchor_free (GimpAnchor *anchor) { g_free (anchor); } - -GimpAnchor * -gimp_anchor_duplicate (const GimpAnchor *anchor) -{ - return g_memdup (anchor, sizeof (GimpAnchor)); -} diff --git a/app/vectors/gimpanchor.h b/app/vectors/gimpanchor.h index cf01a67a40..fdfaece018 100644 --- a/app/vectors/gimpanchor.h +++ b/app/vectors/gimpanchor.h @@ -39,10 +39,11 @@ struct _GimpAnchor }; -GimpAnchor * gimp_anchor_new (GimpAnchorType type, - const GimpCoords *position); -void gimp_anchor_free (GimpAnchor *anchor); -GimpAnchor * gimp_anchor_duplicate (const GimpAnchor *anchor); +GimpAnchor * gimp_anchor_new (GimpAnchorType type, + const GimpCoords *position); + +GimpAnchor * gimp_anchor_copy (const GimpAnchor *anchor); +void gimp_anchor_free (GimpAnchor *anchor); #endif /* __GIMP_ANCHOR_H__ */ diff --git a/app/vectors/gimpstroke.c b/app/vectors/gimpstroke.c index 110cdeb997..1974defff7 100644 --- a/app/vectors/gimpstroke.c +++ b/app/vectors/gimpstroke.c @@ -994,7 +994,7 @@ gimp_stroke_real_duplicate (const GimpStroke *stroke) for (list = new_stroke->anchors; list; list = g_list_next (list)) { - list->data = gimp_anchor_duplicate (GIMP_ANCHOR (list->data)); + list->data = gimp_anchor_copy (GIMP_ANCHOR (list->data)); } new_stroke->closed = stroke->closed;