[gimp/metadata-browser] transformtool: Show an incredibly helpful message in the statusbar when a handle is hovered over



commit ee18264cf79aa1dc05b8dd06b1a7dffa791efe46
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 fc7565d..e4de177 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]