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:
Michael Natterer
2011-11-16 21:10:43 +01:00
parent 57755ee75a
commit ffc9948d6e
6 changed files with 50 additions and 20 deletions

View File

@ -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;
}