[gimp/soc-2012-unified-transformation: 27/51] transformtool: Show an incredibly helpful message in the statusbar when a handle is hovered over
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2012-unified-transformation: 27/51] transformtool: Show an incredibly helpful message in the statusbar when a handle is hovered over
- Date: Mon, 20 Aug 2012 13:53:02 +0000 (UTC)
commit 6dac9e84f9de23f6e05aaf84d12d5dd635d718d2
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]