[gimp/soc-2010-cage-2] app: more minor cage cleanup



commit 806a7c43256f8c441668351ce65d33ba460b8871
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 4 22:47:03 2010 +0100

    app: more minor cage cleanup

 app/tools/gimpcagetool.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 022d3f1..41a542c 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -545,7 +545,7 @@ gimp_cage_tool_draw (GimpDrawTool *draw_tool)
                                            ct->cursor_position.y,
                                            HANDLE_SIZE);
 
-  for(i = 0; i < config->cage_vertice_number; i++)
+  for (i = 0; i < config->cage_vertice_number; i++)
     {
       GimpHandleType handle = GIMP_HANDLE_CIRCLE;
 
@@ -564,7 +564,7 @@ gimp_cage_tool_draw (GimpDrawTool *draw_tool)
                                  vertices[i].x + ct->config->offset_x,
                                  vertices[i].y + ct->config->offset_y,
                                  HANDLE_SIZE, HANDLE_SIZE,
-                                 GTK_ANCHOR_CENTER);
+                                 GIMP_HANDLE_ANCHOR_CENTER);
     }
 }
 
@@ -638,7 +638,9 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct,
 {
   GimpCageConfig *config   = ct->config;
   Babl           *format;
-  GeglNode       *gegl, *input, *output;
+  GeglNode       *gegl;
+  GeglNode       *input;
+  GeglNode       *output;
   GeglProcessor  *processor;
   GimpProgress   *progress;
   GeglBuffer     *buffer;
@@ -790,7 +792,7 @@ gimp_cage_tool_process (GimpCageTool *ct,
   GimpImage    *image    = gimp_display_get_image (display);
   GimpLayer    *layer    = gimp_image_get_active_layer (image);
   GimpDrawable *drawable = GIMP_DRAWABLE (layer);
-  GimpDrawable *mask     = GIMP_DRAWABLE (gimp_layer_get_mask(layer));
+  GimpDrawable *mask     = GIMP_DRAWABLE (gimp_layer_get_mask (layer));
 
   g_return_if_fail (ct->coef);
 
@@ -826,7 +828,6 @@ static void
 gimp_cage_tool_process_drawable (GimpCageTool *ct,
                                  GimpDrawable *drawable,
                                  GimpProgress *progress)
-
 {
   TileManager   *new_tiles = NULL;
   TileManager   *old_tiles = NULL;



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