[gimp] app: GimpBrushTool: don't split brush setting in two callbacks



commit 6a046d09e44ed4facd570cea2c18fc335a33b49b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Mar 30 23:38:14 2011 +0200

    app: GimpBrushTool: don't split brush setting in two callbacks
    
    The need to both connect() and connect_after() to "set-brush" is gone
    because XOR drawing is gone.

 app/tools/gimpbrushtool.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/app/tools/gimpbrushtool.c b/app/tools/gimpbrushtool.c
index 0d11b88..b724dd3 100644
--- a/app/tools/gimpbrushtool.c
+++ b/app/tools/gimpbrushtool.c
@@ -71,9 +71,6 @@ static void   gimp_brush_tool_brush_changed   (GimpContext       *context,
 static void   gimp_brush_tool_set_brush       (GimpBrushCore     *brush_core,
                                                GimpBrush         *brush,
                                                GimpBrushTool     *brush_tool);
-static void   gimp_brush_tool_set_brush_after (GimpBrushCore     *brush_core,
-                                               GimpBrush         *brush,
-                                               GimpBrushTool     *brush_tool);
 static void   gimp_brush_tool_notify_brush    (GimpDisplayConfig *config,
                                                GParamSpec        *pspec,
                                                GimpBrushTool     *brush_tool);
@@ -153,9 +150,6 @@ gimp_brush_tool_constructed (GObject *object)
   g_signal_connect (paint_tool->core, "set-brush",
                     G_CALLBACK (gimp_brush_tool_set_brush),
                     brush_tool);
-  g_signal_connect_after (paint_tool->core, "set-brush",
-                          G_CALLBACK (gimp_brush_tool_set_brush_after),
-                          brush_tool);
 }
 
 static void
@@ -393,13 +387,7 @@ gimp_brush_tool_set_brush (GimpBrushCore *brush_core,
                                                GIMP_PAINT_TOOL_GET_OPTIONS (brush_tool),
                                                &paint_core->cur_coords);
     }
-}
 
-static void
-gimp_brush_tool_set_brush_after (GimpBrushCore *brush_core,
-                                 GimpBrush     *brush,
-                                 GimpBrushTool *brush_tool)
-{
   gimp_draw_tool_resume (GIMP_DRAW_TOOL (brush_tool));
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]