app: set the cage tool's dirty mask so it is canceled upon image changes

This commit is contained in:
Michael Natterer 2010-11-21 14:13:58 +01:00
parent ef87b83ff0
commit 223ae53fcc
1 changed files with 9 additions and 4 deletions

View File

@ -166,6 +166,15 @@ gimp_cage_tool_init (GimpCageTool *self)
{ {
GimpTool *tool = GIMP_TOOL (self); GimpTool *tool = GIMP_TOOL (self);
gimp_tool_control_set_dirty_mask (tool->control,
GIMP_DIRTY_IMAGE |
GIMP_DIRTY_IMAGE_STRUCTURE |
GIMP_DIRTY_DRAWABLE |
GIMP_DIRTY_SELECTION);
gimp_tool_control_set_wants_click (tool->control, TRUE);
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_PERSPECTIVE);
self->config = g_object_new (GIMP_TYPE_CAGE_CONFIG, NULL); self->config = g_object_new (GIMP_TYPE_CAGE_CONFIG, NULL);
self->hovering_handle = -1; self->hovering_handle = -1;
self->moving_handle = -1; self->moving_handle = -1;
@ -173,10 +182,6 @@ gimp_cage_tool_init (GimpCageTool *self)
self->coef = NULL; self->coef = NULL;
self->image_map = NULL; self->image_map = NULL;
gimp_tool_control_set_wants_click (tool->control, TRUE);
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_PERSPECTIVE);
} }
static void static void