app: add a canvas group for tool items
so we can control where in the canvas item stack they appear. Put the group right below the software cursor.
This commit is contained in:
@ -212,7 +212,7 @@ gimp_draw_tool_draw (GimpDrawTool *draw_tool)
|
||||
{
|
||||
GimpDisplayShell *shell = gimp_display_get_shell (draw_tool->display);
|
||||
|
||||
gimp_display_shell_add_item (shell, draw_tool->item);
|
||||
gimp_display_shell_add_tool_item (shell, draw_tool->item);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -224,7 +224,7 @@ gimp_draw_tool_undraw (GimpDrawTool *draw_tool)
|
||||
{
|
||||
GimpDisplayShell *shell = gimp_display_get_shell (draw_tool->display);
|
||||
|
||||
gimp_display_shell_remove_item (shell, draw_tool->item);
|
||||
gimp_display_shell_remove_tool_item (shell, draw_tool->item);
|
||||
g_object_unref (draw_tool->item);
|
||||
draw_tool->item = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user