mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
f5a2b3d3b0
commit
8d4f8187e7
|
@ -1,3 +1,9 @@
|
|||
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__ */
|
||||
|
|
Loading…
Reference in New Issue