mirror of https://github.com/GNOME/gimp.git
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:
parent
09f47a0aec
commit
55b0c9abf0
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -41,8 +41,9 @@ struct _GimpAnchor
|
|||
|
||||
GimpAnchor * gimp_anchor_new (GimpAnchorType type,
|
||||
const GimpCoords *position);
|
||||
|
||||
GimpAnchor * gimp_anchor_copy (const GimpAnchor *anchor);
|
||||
void gimp_anchor_free (GimpAnchor *anchor);
|
||||
GimpAnchor * gimp_anchor_duplicate (const GimpAnchor *anchor);
|
||||
|
||||
|
||||
#endif /* __GIMP_ANCHOR_H__ */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue