renamed gimp_anchor_duplicate() to gimp_anchor_copy().

2007-01-12  Michael Natterer  <mitch@gimp.org>

	* app/vectors/gimpanchor.[ch]: renamed gimp_anchor_duplicate()
	to gimp_anchor_copy().

	* app/vectors/gimpstroke.c (gimp_stroke_real_duplicate): changed
	accordingly.


svn path=/trunk/; revision=21699
This commit is contained in:
Michael Natterer 2007-01-12 20:31:27 +00:00 committed by Michael Natterer
parent 09f47a0aec
commit 55b0c9abf0
4 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,11 @@
2007-01-12 Michael Natterer <mitch@gimp.org>
* 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 <mitch@gimp.org>
* app/core/gimpdashpattern.[ch]: register GIMP_TYPE_DASH_PATTERN

View File

@ -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));
}

View File

@ -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__ */

View File

@ -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;