[gimp] tools: improve status-bar hints for the Curves tool



commit ef8dabcc7f69ae4c58e530a9dedfc4020938b6f1
Author: Sven Neumann <sven gimp org>
Date:   Sun May 24 18:19:19 2009 +0200

    tools: improve status-bar hints for the Curves tool
---
 app/tools/gimpcurvestool.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c
index b510b7a..d17bff4 100644
--- a/app/tools/gimpcurvestool.c
+++ b/app/tools/gimpcurvestool.c
@@ -312,8 +312,8 @@ gimp_curves_tool_oper_update (GimpTool         *tool,
                               gboolean          proximity,
                               GimpDisplay      *display)
 {
-  GimpColorPickMode  mode   = GIMP_COLOR_PICK_MODE_NONE;
-  const gchar       *status = NULL;
+  GimpColorPickMode  mode;
+  const gchar       *status;
 
   GIMP_TOOL_CLASS (parent_class)->oper_update (tool, coords, state, proximity,
                                                display);
@@ -330,10 +330,15 @@ gimp_curves_tool_oper_update (GimpTool         *tool,
       mode   = GIMP_COLOR_PICK_MODE_PALETTE;
       status = _("Click to add control points to all channels");
     }
+  else
+    {
+      mode   = GIMP_COLOR_PICK_MODE_NONE;
+      status = _("Click to locate on curve (try Shift, Ctrl)");
+    }
 
   GIMP_COLOR_TOOL (tool)->pick_mode = mode;
 
-  if (status && proximity)
+  if (proximity)
     gimp_tool_push_status (tool, display, "%s", status);
 }
 



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