Commit 8d4f8187 authored by William Skaggs's avatar William Skaggs
Browse files

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* app/core/gimpstrokedesc.h
	* app/core/gimpstrokedesc.c (gimp_stroke_desc_duplicate):
	New function, will be needed for shape layers.
parent f5a2b3d3
2005-03-11 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpstrokedesc.h
* app/core/gimpstrokedesc.c (gimp_stroke_desc_duplicate):
New function, will be needed for shape layers.
2005-03-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/deinterlace.c
......@@ -17,7 +23,7 @@
* plug-ins/uri/url-backend-wget.c: force the server-response wget
option off so it doesn't screw up our parsing.
2005-03-09 Bill Skaggs <weskaggs@primate.ucdavis.edu>
2005-03-10 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c: lots of code for dealing
with constraints. Almost functional now ...
......
......@@ -301,6 +301,34 @@ gimp_stroke_desc_new (Gimp *gimp,
return desc;
}
GimpStrokeDesc *
gimp_stroke_desc_duplicate (GimpStrokeDesc *desc)
{
GimpStrokeDesc *new_desc;
GimpStrokeOptions *stroke_options = NULL;
GimpPaintInfo *paint_info = NULL;
GimpPaintOptions *paint_options = NULL;
new_desc = gimp_stroke_desc_new (desc->gimp,
GIMP_CONTEXT (desc->stroke_options));
new_desc->method = desc->method;
g_object_get (G_OBJECT (desc),
"stroke-options", stroke_options,
"paint-info", paint_info,
"paint-options", paint_options,
NULL);
g_object_set (G_OBJECT (new_desc),
"stroke-options", stroke_options,
"paint-info", paint_info,
"paint-options", paint_options,
NULL);
return new_desc;
}
void
gimp_stroke_desc_prepare (GimpStrokeDesc *desc,
GimpContext *context,
......
......@@ -56,15 +56,17 @@ struct _GimpStrokeDescClass
};
GType gimp_stroke_desc_get_type (void) G_GNUC_CONST;
GType gimp_stroke_desc_get_type (void) G_GNUC_CONST;
GimpStrokeDesc * gimp_stroke_desc_new (Gimp *gimp,
GimpContext *context);
GimpStrokeDesc * gimp_stroke_desc_new (Gimp *gimp,
GimpContext *context);
void gimp_stroke_desc_prepare (GimpStrokeDesc *desc,
GimpContext *context,
gboolean use_default_values);
void gimp_stroke_desc_finish (GimpStrokeDesc *desc);
GimpStrokeDesc * gimp_stroke_desc_duplicate (GimpStrokeDesc *desc);
void gimp_stroke_desc_prepare (GimpStrokeDesc *desc,
GimpContext *context,
gboolean use_default_values);
void gimp_stroke_desc_finish (GimpStrokeDesc *desc);
#endif /* __GIMP_STROKE_DESC_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment