[gimp] app: use gimp_display_shell_get_line_status() for GimpToolLine.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use gimp_display_shell_get_line_status() for GimpToolLine.
- Date: Fri, 22 Dec 2017 22:24:49 +0000 (UTC)
commit e1621c32d32cb33a76a6f8e434d3b6e8a1b9aa59
Author: Jehan <jehan girinstud io>
Date: Fri Dec 22 22:29:14 2017 +0100
app: use gimp_display_shell_get_line_status() for GimpToolLine.
Currently Blend tool only shows the vector coordinates whose usefulness
is a bit of a question. Now it will also show distance (in current shell
unit) and angle!
app/display/gimptoolline.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptoolline.c b/app/display/gimptoolline.c
index 21f1096..3561644 100644
--- a/app/display/gimptoolline.c
+++ b/app/display/gimptoolline.c
@@ -1560,12 +1560,24 @@ gimp_tool_line_update_status (GimpToolLine *line,
}
else
{
+ GimpDisplayShell *shell;
+ gchar *enhanced_title;
+
+ shell = gimp_tool_widget_get_shell (GIMP_TOOL_WIDGET (line));
+ enhanced_title = gimp_display_shell_get_line_status (shell,
+ private->status_title,
+ ". ",
+ private->x1,
+ private->y1,
+ private->x2,
+ private->y2);
gimp_tool_widget_set_status_coords (GIMP_TOOL_WIDGET (line),
- private->status_title,
+ enhanced_title,
private->x2 - private->x1,
", ",
private->y2 - private->y1,
status);
+ g_free (enhanced_title);
}
g_free (status);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]