[gimp] app: set GimpToolControl->motion_mode to COMPRESS for move and color picker
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set GimpToolControl->motion_mode to COMPRESS for move and color picker
- Date: Sat, 10 Dec 2011 22:24:00 +0000 (UTC)
commit 3f4754d124bc001732a656dd88af770c0cd997e5
Author: Michael Natterer <mitch gimp org>
Date: Sat Dec 10 23:16:06 2011 +0100
app: set GimpToolControl->motion_mode to COMPRESS for move and color picker
app/tools/gimpcolorpickertool.c | 7 +++++--
app/tools/gimpmovetool.c | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpcolorpickertool.c b/app/tools/gimpcolorpickertool.c
index 77298fc..f20237e 100644
--- a/app/tools/gimpcolorpickertool.c
+++ b/app/tools/gimpcolorpickertool.c
@@ -115,9 +115,12 @@ gimp_color_picker_tool_class_init (GimpColorPickerToolClass *klass)
}
static void
-gimp_color_picker_tool_init (GimpColorPickerTool *tool)
+gimp_color_picker_tool_init (GimpColorPickerTool *picker_tool)
{
- GimpColorTool *color_tool = GIMP_COLOR_TOOL (tool);
+ GimpTool *tool = GIMP_TOOL (picker_tool);
+ GimpColorTool *color_tool = GIMP_COLOR_TOOL (picker_tool);
+
+ gimp_tool_control_set_motion_mode (tool->control, GIMP_MOTION_MODE_COMPRESS);
color_tool->pick_mode = GIMP_COLOR_PICK_MODE_FOREGROUND;
}
diff --git a/app/tools/gimpmovetool.c b/app/tools/gimpmovetool.c
index 7643c42..39b9b5d 100644
--- a/app/tools/gimpmovetool.c
+++ b/app/tools/gimpmovetool.c
@@ -154,6 +154,8 @@ gimp_move_tool_init (GimpMoveTool *move_tool)
{
GimpTool *tool = GIMP_TOOL (move_tool);
+ gimp_tool_control_set_motion_mode (tool->control,
+ GIMP_MOTION_MODE_COMPRESS);
gimp_tool_control_set_snap_to (tool->control, FALSE);
gimp_tool_control_set_handle_empty_image (tool->control, TRUE);
gimp_tool_control_set_tool_cursor (tool->control,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]