[gimp] app: constify "color" parameter in GimpColorTool::picked()



commit 036c5aff73043b1e0a3e028316c4c140058e5f46
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 4 00:08:57 2011 +0200

    app: constify "color" parameter in GimpColorTool::picked()

 app/tools/gimpcolorpickertool.c |    8 ++++----
 app/tools/gimpcolortool.c       |    4 ++--
 app/tools/gimpcolortool.h       |    2 +-
 app/tools/gimpcurvestool.c      |    4 ++--
 app/tools/gimplevelstool.c      |    4 ++--
 5 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/tools/gimpcolorpickertool.c b/app/tools/gimpcolorpickertool.c
index 44f915d..41dd4eb 100644
--- a/app/tools/gimpcolorpickertool.c
+++ b/app/tools/gimpcolorpickertool.c
@@ -62,7 +62,7 @@ static void   gimp_color_picker_tool_oper_update   (GimpTool            *tool,
 static void   gimp_color_picker_tool_picked        (GimpColorTool       *color_tool,
                                                     GimpColorPickState   pick_state,
                                                     GimpImageType        sample_type,
-                                                    GimpRGB             *color,
+                                                    const GimpRGB       *color,
                                                     gint                 color_index);
 
 static void   gimp_color_picker_tool_info_create   (GimpColorPickerTool *picker_tool);
@@ -71,7 +71,7 @@ static void   gimp_color_picker_tool_info_response (GtkWidget           *widget,
                                                     GimpColorPickerTool *picker_tool);
 static void   gimp_color_picker_tool_info_update   (GimpColorPickerTool *picker_tool,
                                                     GimpImageType        sample_type,
-                                                    GimpRGB             *color,
+                                                    const GimpRGB       *color,
                                                     gint                 color_index);
 
 
@@ -267,7 +267,7 @@ static void
 gimp_color_picker_tool_picked (GimpColorTool      *color_tool,
                                GimpColorPickState  pick_state,
                                GimpImageType       sample_type,
-                               GimpRGB            *color,
+                               const GimpRGB      *color,
                                gint                color_index)
 {
   GimpColorPickerTool    *picker_tool = GIMP_COLOR_PICKER_TOOL (color_tool);
@@ -369,7 +369,7 @@ gimp_color_picker_tool_info_response (GtkWidget           *widget,
 static void
 gimp_color_picker_tool_info_update (GimpColorPickerTool *picker_tool,
                                     GimpImageType        sample_type,
-                                    GimpRGB             *color,
+                                    const GimpRGB       *color,
                                     gint                 color_index)
 {
   gimp_color_area_set_color (GIMP_COLOR_AREA (picker_tool->color_area),
diff --git a/app/tools/gimpcolortool.c b/app/tools/gimpcolortool.c
index 2f1e9d3..fe21ccf 100644
--- a/app/tools/gimpcolortool.c
+++ b/app/tools/gimpcolortool.c
@@ -113,7 +113,7 @@ static void   gimp_color_tool_pick           (GimpColorTool         *tool,
 static void   gimp_color_tool_real_picked    (GimpColorTool         *color_tool,
                                               GimpColorPickState     pick_state,
                                               GimpImageType          sample_type,
-                                              GimpRGB               *color,
+                                              const GimpRGB         *color,
                                               gint                   color_index);
 
 
@@ -597,7 +597,7 @@ static void
 gimp_color_tool_real_picked (GimpColorTool      *color_tool,
                              GimpColorPickState  pick_state,
                              GimpImageType       sample_type,
-                             GimpRGB            *color,
+                             const GimpRGB      *color,
                              gint                color_index)
 {
   GimpTool          *tool = GIMP_TOOL (color_tool);
diff --git a/app/tools/gimpcolortool.h b/app/tools/gimpcolortool.h
index 1d64c50..e2e278d 100644
--- a/app/tools/gimpcolortool.h
+++ b/app/tools/gimpcolortool.h
@@ -67,7 +67,7 @@ struct _GimpColorToolClass
   void     (* picked) (GimpColorTool      *tool,
                        GimpColorPickState  pick_state,
                        GimpImageType       sample_type,
-                       GimpRGB            *color,
+                       const GimpRGB      *color,
                        gint                color_index);
 };
 
diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c
index baf602a..2fdb2f5 100644
--- a/app/tools/gimpcurvestool.c
+++ b/app/tools/gimpcurvestool.c
@@ -87,7 +87,7 @@ static void       gimp_curves_tool_oper_update    (GimpTool             *tool,
 static void       gimp_curves_tool_color_picked   (GimpColorTool        *color_tool,
                                                    GimpColorPickState    pick_state,
                                                    GimpImageType         sample_type,
-                                                   GimpRGB              *color,
+                                                   const GimpRGB        *color,
                                                    gint                  color_index);
 static GeglNode * gimp_curves_tool_get_operation  (GimpImageMapTool     *image_map_tool,
                                                    GObject             **config);
@@ -359,7 +359,7 @@ static void
 gimp_curves_tool_color_picked (GimpColorTool      *color_tool,
                                GimpColorPickState  pick_state,
                                GimpImageType       sample_type,
-                               GimpRGB            *color,
+                               const GimpRGB      *color,
                                gint                color_index)
 {
   GimpCurvesTool *tool = GIMP_CURVES_TOOL (color_tool);
diff --git a/app/tools/gimplevelstool.c b/app/tools/gimplevelstool.c
index a654832..2d8c3ed 100644
--- a/app/tools/gimplevelstool.c
+++ b/app/tools/gimplevelstool.c
@@ -77,7 +77,7 @@ static gboolean   gimp_levels_tool_initialize     (GimpTool          *tool,
 static void       gimp_levels_tool_color_picked   (GimpColorTool     *color_tool,
                                                    GimpColorPickState pick_state,
                                                    GimpImageType      sample_type,
-                                                   GimpRGB           *color,
+                                                   const GimpRGB     *color,
                                                    gint               color_index);
 
 static GeglNode * gimp_levels_tool_get_operation  (GimpImageMapTool  *im_tool,
@@ -1197,7 +1197,7 @@ static void
 gimp_levels_tool_color_picked (GimpColorTool      *color_tool,
                                GimpColorPickState  pick_state,
                                GimpImageType       sample_type,
-                               GimpRGB            *color,
+                               const GimpRGB      *color,
                                gint                color_index)
 {
   GimpLevelsTool *tool = GIMP_LEVELS_TOOL (color_tool);



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