[gimp/soc-2012-unified-transformation: 26/39] transformtool: Show an incredibly helpful message in the statusbar when a handle is hovered over



commit aece2737dfb62c6ec1e29c2c7b5ff191dfa70af2
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Thu Jun 14 05:40:20 2012 +0200

    transformtool: Show an incredibly helpful message in the statusbar when a handle is hovered over

 app/tools/gimpunifiedtransformtool.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpunifiedtransformtool.c b/app/tools/gimpunifiedtransformtool.c
index 78e64a0..289e81d 100644
--- a/app/tools/gimpunifiedtransformtool.c
+++ b/app/tools/gimpunifiedtransformtool.c
@@ -148,6 +148,7 @@ static void
 gimp_transform_tool_set_function (GimpTransformTool *tr_tool,
                                   TransformAction    function)
 {
+  GimpTool *tool = GIMP_TOOL (tr_tool);
   if (function != tr_tool->function)
     {
       if (tr_tool->handles[tr_tool->function] &&
@@ -155,6 +156,7 @@ gimp_transform_tool_set_function (GimpTransformTool *tr_tool,
         {
           gimp_canvas_item_set_highlight (tr_tool->handles[tr_tool->function],
                                           FALSE);
+          gimp_tool_pop_status (tool, tool->display);
         }
 
       tr_tool->function = function;
@@ -164,6 +166,7 @@ gimp_transform_tool_set_function (GimpTransformTool *tr_tool,
         {
           gimp_canvas_item_set_highlight (tr_tool->handles[tr_tool->function],
                                           TRUE);
+          gimp_tool_push_status (tool, tool->display, "%i", tr_tool->function);
         }
     }
 }



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