[gimp] gimp_enum_get_value() takes const char *'s



commit 819281ebc885239481e2873e5bab346a2408009f
Author: Manish Singh <yosh gimp org>
Date:   Sun May 24 10:39:57 2009 -0700

    gimp_enum_get_value() takes const char *'s
---
 app/actions/context-commands.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/actions/context-commands.c b/app/actions/context-commands.c
index 5ea918a..3a08c3a 100644
--- a/app/actions/context-commands.c
+++ b/app/actions/context-commands.c
@@ -413,7 +413,7 @@ context_paint_mode_cmd_callback (GtkAction *action,
   if (tool_info && GIMP_IS_TOOL_OPTIONS (tool_info->tool_options))
     {
       GimpDisplay *display;
-      char        *value_desc;
+      const char  *value_desc;
 
       gimp_enum_get_value (GIMP_TYPE_LAYER_MODE_EFFECTS, index,
                            NULL, NULL, &value_desc, NULL);
@@ -536,7 +536,7 @@ context_brush_shape_cmd_callback (GtkAction *action,
     {
       GimpBrushGenerated *generated = GIMP_BRUSH_GENERATED (brush);
       GimpDisplay        *display;
-      char               *value_desc;
+      const char         *value_desc;
 
       gimp_brush_generated_set_shape (generated,
                                       (GimpBrushGeneratedShape) value);



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