mirror of https://github.com/GNOME/gimp.git
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!
This commit is contained in:
parent
2069496af3
commit
e1621c32d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue