[gimp/soc-2010-cage-2] app: set the cage tool's dirty mask so it is canceled upon image changes
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: set the cage tool's dirty mask so it is canceled upon image changes
- Date: Thu, 30 Dec 2010 18:11:46 +0000 (UTC)
commit 277ad92547b386677948f205f5d5a3ddaeaa01ae
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 21 14:13:58 2010 +0100
app: set the cage tool's dirty mask so it is canceled upon image changes
app/tools/gimpcagetool.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 4b5c5cd..4fbf343 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -166,6 +166,15 @@ gimp_cage_tool_init (GimpCageTool *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->hovering_handle = -1;
self->moving_handle = -1;
@@ -173,10 +182,6 @@ gimp_cage_tool_init (GimpCageTool *self)
self->coef = 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]