From 9a85ba5b3ada835a56b11e41d6042c3cb1516eba Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 29 Aug 2006 20:19:28 +0000 Subject: [PATCH] minor cleanup. 2006-08-30 Michael Natterer * app/paint/gimpbrushcore.c: minor cleanup. --- ChangeLog | 4 ++++ app/paint/gimpbrushcore.c | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2125c3ae14..dc9e32badb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-08-30 Michael Natterer + + * app/paint/gimpbrushcore.c: minor cleanup. + 2006-08-29 Sven Neumann * libgimpbase/Makefile.am diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c index 0848820346..28e6778d1b 100644 --- a/app/paint/gimpbrushcore.c +++ b/app/paint/gimpbrushcore.c @@ -722,14 +722,17 @@ void gimp_brush_core_set_brush (GimpBrushCore *core, GimpBrush *brush) { + g_return_if_fail (GIMP_IS_BRUSH_CORE (core)); + g_return_if_fail (brush == NULL || GIMP_IS_BRUSH (brush)); + g_signal_emit (core, core_signals[SET_BRUSH], 0, brush); } void gimp_brush_core_paste_canvas (GimpBrushCore *core, - GimpDrawable *drawable, - gdouble brush_opacity, - gdouble image_opacity, + GimpDrawable *drawable, + gdouble brush_opacity, + gdouble image_opacity, GimpLayerModeEffects paint_mode, GimpBrushApplicationMode brush_hardness, GimpPaintApplicationMode mode) @@ -771,7 +774,7 @@ gimp_brush_core_paste_canvas (GimpBrushCore *core, */ void gimp_brush_core_replace_canvas (GimpBrushCore *core, - GimpDrawable *drawable, + GimpDrawable *drawable, gdouble brush_opacity, gdouble image_opacity, GimpBrushApplicationMode brush_hardness, @@ -1476,4 +1479,3 @@ paint_line_pixmap_mask (GimpImage *dest, } } } -