removed "gboolean use_default_values" from GimpItem::stroke().

2004-08-26  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem.[ch]: removed "gboolean use_default_values"
	from GimpItem::stroke().

	* app/core/gimpchannel.c
	* app/core/gimpselection.c
	* app/vectors/gimpvectors.c: changed accordingly.
This commit is contained in:
Michael Natterer 2004-08-26 16:33:42 +00:00 committed by Michael Natterer
parent 23bd12162d
commit f1d0db6d99
6 changed files with 19 additions and 21 deletions

View File

@ -1,3 +1,12 @@
2004-08-26 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.[ch]: removed "gboolean use_default_values"
from GimpItem::stroke().
* app/core/gimpchannel.c
* app/core/gimpselection.c
* app/vectors/gimpvectors.c: changed accordingly.
2004-08-26 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.c (gimp_item_stroke): implement the whole

View File

@ -117,8 +117,7 @@ static void gimp_channel_transform (GimpItem *item,
static gboolean gimp_channel_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values);
GimpObject *stroke_desc);
static void gimp_channel_invalidate_boundary (GimpDrawable *drawable);
static void gimp_channel_get_active_components (const GimpDrawable *drawable,
@ -594,8 +593,7 @@ static gboolean
gimp_channel_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values)
GimpObject *stroke_desc)
{
GimpChannel *channel = GIMP_CHANNEL (item);

View File

@ -1052,8 +1052,7 @@ gimp_item_stroke (GimpItem *item,
stroke_desc = GIMP_OBJECT (paint_options);
}
retval = item_class->stroke (item, drawable, context,
stroke_desc, use_default_values);
retval = item_class->stroke (item, drawable, context, stroke_desc);
g_object_unref (stroke_desc);

View File

@ -115,8 +115,7 @@ struct _GimpItemClass
gboolean (* stroke) (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values);
GimpObject *stroke_desc);
const gchar *default_name;
const gchar *rename_desc;

View File

@ -77,8 +77,7 @@ static void gimp_selection_rotate (GimpItem *item,
static gboolean gimp_selection_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values);
GimpObject *stroke_desc);
static void gimp_selection_invalidate_boundary (GimpDrawable *drawable);
@ -291,8 +290,7 @@ static gboolean
gimp_selection_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values)
GimpObject *stroke_desc)
{
GimpSelection *selection = GIMP_SELECTION (item);
const BoundSeg *dummy_in;
@ -313,8 +311,7 @@ gimp_selection_stroke (GimpItem *item,
selection->stroking = TRUE;
retval = GIMP_ITEM_CLASS (parent_class)->stroke (item, drawable, context,
stroke_desc,
use_default_values);
stroke_desc);
selection->stroking = FALSE;

View File

@ -115,11 +115,8 @@ static void gimp_vectors_transform (GimpItem *item,
static gboolean gimp_vectors_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values);
GimpObject *stroke_desc);
#
static void gimp_vectors_real_thaw (GimpVectors *vectors);
static void gimp_vectors_real_stroke_add (GimpVectors *vectors,
GimpStroke *stroke);
@ -563,8 +560,7 @@ static gboolean
gimp_vectors_stroke (GimpItem *item,
GimpDrawable *drawable,
GimpContext *context,
GimpObject *stroke_desc,
gboolean use_default_values)
GimpObject *stroke_desc)
{
GimpVectors *vectors = GIMP_VECTORS (item);
gboolean retval = FALSE;
@ -582,7 +578,7 @@ gimp_vectors_stroke (GimpItem *item,
vectors);
retval = TRUE;
}
else if (GIMP_IS_PAINT_INFO (stroke_desc))
else if (GIMP_IS_PAINT_OPTIONS (stroke_desc))
{
GimpPaintOptions *paint_options = GIMP_PAINT_OPTIONS (stroke_desc);
GimpPaintCore *core;