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



commit 0274c8937b136b1d0ba5a8183a4eeefaf3d2f062
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/gimpunifiedtransformationtool.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpunifiedtransformationtool.c b/app/tools/gimpunifiedtransformationtool.c
index 97a79a9..211895c 100644
--- a/app/tools/gimpunifiedtransformationtool.c
+++ b/app/tools/gimpunifiedtransformationtool.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]