gimp r27517 - in trunk: . app/tools
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27517 - in trunk: . app/tools
- Date: Sat, 1 Nov 2008 15:17:36 +0000 (UTC)
Author: mitch
Date: Sat Nov 1 15:17:36 2008
New Revision: 27517
URL: http://svn.gnome.org/viewvc/gimp?rev=27517&view=rev
Log:
2008-11-01 Michael Natterer <mitch gimp org>
* app/tools/gimptool.[ch]
* app/tools/tool_manager.[ch]: made all GimpCoords* in the tool
API const.
* app/tools/gimpaligntool.c
* app/tools/gimpblendtool.c
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpbrushtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpcolortool.c
* app/tools/gimpconvolvetool.c
* app/tools/gimpcroptool.c
* app/tools/gimpcurvestool.c
* app/tools/gimpdodgeburntool.c
* app/tools/gimpeditselectiontool.[ch]
* app/tools/gimperasertool.c
* app/tools/gimpfliptool.c
* app/tools/gimpforegroundselecttool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimpmagnifytool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimpmovetool.c
* app/tools/gimppainttool.c
* app/tools/gimpperspectiveclonetool.c
* app/tools/gimprectangleselecttool.c
* app/tools/gimprectangletool.[ch]
* app/tools/gimpregionselecttool.c
* app/tools/gimpselectiontool.[ch]
* app/tools/gimpsourcetool.c
* app/tools/gimptexttool.c
* app/tools/gimptransformtool.c
* app/tools/gimpvectortool.c: changed accordingly and added const
to all GimpCoords* in utility functions too.
* app/tools/gimptexttool.c: don't modify the passed coords. In
fact, simply removed the code that did because it had no effect.
Modified:
trunk/ChangeLog
trunk/app/tools/gimpaligntool.c
trunk/app/tools/gimpblendtool.c
trunk/app/tools/gimpbrightnesscontrasttool.c
trunk/app/tools/gimpbrushtool.c
trunk/app/tools/gimpbucketfilltool.c
trunk/app/tools/gimpcolorpickertool.c
trunk/app/tools/gimpcolortool.c
trunk/app/tools/gimpconvolvetool.c
trunk/app/tools/gimpcroptool.c
trunk/app/tools/gimpcurvestool.c
trunk/app/tools/gimpdodgeburntool.c
trunk/app/tools/gimpeditselectiontool.c
trunk/app/tools/gimpeditselectiontool.h
trunk/app/tools/gimperasertool.c
trunk/app/tools/gimpfliptool.c
trunk/app/tools/gimpforegroundselecttool.c
trunk/app/tools/gimpfreeselecttool.c
trunk/app/tools/gimpiscissorstool.c
trunk/app/tools/gimpmagnifytool.c
trunk/app/tools/gimpmeasuretool.c
trunk/app/tools/gimpmovetool.c
trunk/app/tools/gimppainttool.c
trunk/app/tools/gimpperspectiveclonetool.c
trunk/app/tools/gimprectangleselecttool.c
trunk/app/tools/gimprectangletool.c
trunk/app/tools/gimprectangletool.h
trunk/app/tools/gimpregionselecttool.c
trunk/app/tools/gimpselectiontool.c
trunk/app/tools/gimpselectiontool.h
trunk/app/tools/gimpsourcetool.c
trunk/app/tools/gimptexttool.c
trunk/app/tools/gimptool.c
trunk/app/tools/gimptool.h
trunk/app/tools/gimptransformtool.c
trunk/app/tools/gimpvectortool.c
trunk/app/tools/tool_manager.c
trunk/app/tools/tool_manager.h
Modified: trunk/app/tools/gimpaligntool.c
==============================================================================
--- trunk/app/tools/gimpaligntool.c (original)
+++ trunk/app/tools/gimpaligntool.c Sat Nov 1 15:17:36 2008
@@ -69,23 +69,23 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_align_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_align_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_tyle,
GimpDisplay *display);
static void gimp_align_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_align_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -94,7 +94,7 @@
GdkModifierType state,
gboolean proximity);
static void gimp_align_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -265,11 +265,11 @@
}
static void
-gimp_align_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_align_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpAlignTool *align_tool = GIMP_ALIGN_TOOL (tool);
@@ -309,7 +309,7 @@
*/
static void
gimp_align_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -438,11 +438,11 @@
}
static void
-gimp_align_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_align_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpAlignTool *align_tool = GIMP_ALIGN_TOOL (tool);
@@ -455,11 +455,11 @@
}
static void
-gimp_align_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_align_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpAlignTool *align_tool = GIMP_ALIGN_TOOL (tool);
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
@@ -510,10 +510,10 @@
}
static void
-gimp_align_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_align_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpAlignTool *align_tool = GIMP_ALIGN_TOOL (tool);
GimpToolCursorType tool_cursor = GIMP_TOOL_CURSOR_NONE;
Modified: trunk/app/tools/gimpblendtool.c
==============================================================================
--- trunk/app/tools/gimpblendtool.c (original)
+++ trunk/app/tools/gimpblendtool.c Sat Nov 1 15:17:36 2008
@@ -55,18 +55,18 @@
GimpDisplay *display,
GError **error);
static void gimp_blend_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_blend_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_blend_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -76,7 +76,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_blend_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -168,11 +168,11 @@
}
static void
-gimp_blend_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_blend_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (tool);
@@ -193,7 +193,7 @@
static void
gimp_blend_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -252,11 +252,11 @@
}
static void
-gimp_blend_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_blend_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (tool);
@@ -331,10 +331,10 @@
}
static void
-gimp_blend_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_blend_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
switch (gimp_drawable_type (gimp_image_get_active_drawable (display->image)))
{
Modified: trunk/app/tools/gimpbrightnesscontrasttool.c
==============================================================================
--- trunk/app/tools/gimpbrightnesscontrasttool.c (original)
+++ trunk/app/tools/gimpbrightnesscontrasttool.c Sat Nov 1 15:17:36 2008
@@ -58,18 +58,18 @@
GError **error);
static void gimp_brightness_contrast_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_brightness_contrast_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_brightness_contrast_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -226,11 +226,11 @@
static void
-gimp_brightness_contrast_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_brightness_contrast_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBrightnessContrastTool *bc_tool = GIMP_BRIGHTNESS_CONTRAST_TOOL (tool);
@@ -245,7 +245,7 @@
static void
gimp_brightness_contrast_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -266,11 +266,11 @@
}
static void
-gimp_brightness_contrast_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_brightness_contrast_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBrightnessContrastTool *bc_tool = GIMP_BRIGHTNESS_CONTRAST_TOOL (tool);
Modified: trunk/app/tools/gimpbrushtool.c
==============================================================================
--- trunk/app/tools/gimpbrushtool.c (original)
+++ trunk/app/tools/gimpbrushtool.c Sat Nov 1 15:17:36 2008
@@ -47,17 +47,17 @@
GObjectConstructParam *params);
static void gimp_brush_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_brush_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_brush_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -170,11 +170,11 @@
}
static void
-gimp_brush_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_brush_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBrushTool *brush_tool = GIMP_BRUSH_TOOL (tool);
@@ -192,11 +192,11 @@
}
static void
-gimp_brush_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_brush_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpBrushTool *brush_tool = GIMP_BRUSH_TOOL (tool);
GimpPaintOptions *paint_options = GIMP_PAINT_TOOL_GET_OPTIONS (tool);
@@ -226,10 +226,10 @@
}
static void
-gimp_brush_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_brush_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBrushTool *brush_tool = GIMP_BRUSH_TOOL (tool);
Modified: trunk/app/tools/gimpbucketfilltool.c
==============================================================================
--- trunk/app/tools/gimpbucketfilltool.c (original)
+++ trunk/app/tools/gimpbucketfilltool.c Sat Nov 1 15:17:36 2008
@@ -45,7 +45,7 @@
/* local function prototypes */
static void gimp_bucket_fill_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -56,7 +56,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_bucket_fill_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -114,7 +114,7 @@
static void
gimp_bucket_fill_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -204,10 +204,10 @@
}
static void
-gimp_bucket_fill_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_bucket_fill_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpBucketFillOptions *options = GIMP_BUCKET_FILL_TOOL_GET_OPTIONS (tool);
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_BAD;
Modified: trunk/app/tools/gimpcolorpickertool.c
==============================================================================
--- trunk/app/tools/gimpcolorpickertool.c (original)
+++ trunk/app/tools/gimpcolorpickertool.c Sat Nov 1 15:17:36 2008
@@ -44,39 +44,39 @@
/* local function prototypes */
-static GObject * gimp_color_picker_tool_constructor (GType type,
- guint n_params,
+static GObject * gimp_color_picker_tool_constructor (GType type,
+ guint n_params,
GObjectConstructParam *params);
-static void gimp_color_picker_tool_finalize (GObject *object);
+static void gimp_color_picker_tool_finalize (GObject *object);
-static void gimp_color_picker_tool_control (GimpTool *tool,
- GimpToolAction action,
- GimpDisplay *display);
-static void gimp_color_picker_tool_modifier_key (GimpTool *tool,
- GdkModifierType key,
- gboolean press,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_color_picker_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display);
+static void gimp_color_picker_tool_control (GimpTool *tool,
+ GimpToolAction action,
+ GimpDisplay *display);
+static void gimp_color_picker_tool_modifier_key (GimpTool *tool,
+ GdkModifierType key,
+ gboolean press,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_color_picker_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display);
-static void gimp_color_picker_tool_picked (GimpColorTool *color_tool,
+static void gimp_color_picker_tool_picked (GimpColorTool *color_tool,
GimpColorPickState pick_state,
- GimpImageType sample_type,
- GimpRGB *color,
- gint color_index);
-
-static void gimp_color_picker_tool_info_create (GimpColorPickerTool *picker_tool);
-static void gimp_color_picker_tool_info_response (GtkWidget *widget,
- gint response_id,
- GimpColorPickerTool *picker_tool);
-static void gimp_color_picker_tool_info_update (GimpColorPickerTool *picker_tool,
- GimpImageType sample_type,
- GimpRGB *color,
- gint color_index);
+ GimpImageType sample_type,
+ GimpRGB *color,
+ gint color_index);
+
+static void gimp_color_picker_tool_info_create (GimpColorPickerTool *picker_tool);
+static void gimp_color_picker_tool_info_response (GtkWidget *widget,
+ gint response_id,
+ GimpColorPickerTool *picker_tool);
+static void gimp_color_picker_tool_info_update (GimpColorPickerTool *picker_tool,
+ GimpImageType sample_type,
+ GimpRGB *color,
+ gint color_index);
G_DEFINE_TYPE (GimpColorPickerTool, gimp_color_picker_tool,
@@ -216,11 +216,11 @@
}
static void
-gimp_color_picker_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_color_picker_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpColorPickerTool *picker_tool = GIMP_COLOR_PICKER_TOOL (tool);
GimpColorPickerOptions *options = GIMP_COLOR_PICKER_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpcolortool.c
==============================================================================
--- trunk/app/tools/gimpcolortool.c (original)
+++ trunk/app/tools/gimpcolortool.c Sat Nov 1 15:17:36 2008
@@ -73,28 +73,28 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_color_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_color_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_color_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_color_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_color_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -226,11 +226,11 @@
}
static void
-gimp_color_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_color_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpColorTool *color_tool = GIMP_COLOR_TOOL (tool);
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
@@ -281,7 +281,7 @@
static void
gimp_color_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -368,11 +368,11 @@
}
static void
-gimp_color_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_color_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpColorTool *color_tool = GIMP_COLOR_TOOL (tool);
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
@@ -462,11 +462,11 @@
}
static void
-gimp_color_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_color_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpColorTool *color_tool = GIMP_COLOR_TOOL (tool);
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
@@ -499,10 +499,10 @@
}
static void
-gimp_color_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_color_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpColorTool *color_tool = GIMP_COLOR_TOOL (tool);
Modified: trunk/app/tools/gimpconvolvetool.c
==============================================================================
--- trunk/app/tools/gimpconvolvetool.c (original)
+++ trunk/app/tools/gimpconvolvetool.c Sat Nov 1 15:17:36 2008
@@ -42,11 +42,11 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_convolve_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static void gimp_convolve_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -130,10 +130,10 @@
}
static void
-gimp_convolve_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_convolve_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpConvolveOptions *options = GIMP_CONVOLVE_TOOL_GET_OPTIONS (tool);
@@ -144,11 +144,11 @@
}
static void
-gimp_convolve_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_convolve_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpConvolveOptions *options = GIMP_CONVOLVE_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpcroptool.c
==============================================================================
--- trunk/app/tools/gimpcroptool.c (original)
+++ trunk/app/tools/gimpcroptool.c Sat Nov 1 15:17:36 2008
@@ -66,12 +66,12 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_crop_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_crop_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -82,7 +82,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_crop_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static gboolean gimp_crop_tool_execute (GimpRectangleTool *rectangle,
@@ -247,11 +247,11 @@
}
static void
-gimp_crop_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_crop_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
if (tool->display && display != tool->display)
gimp_rectangle_tool_cancel (GIMP_RECTANGLE_TOOL (tool));
@@ -261,7 +261,7 @@
static void
gimp_crop_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -291,10 +291,10 @@
}
static void
-gimp_crop_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_crop_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
gimp_rectangle_tool_cursor_update (tool, coords, state, display);
Modified: trunk/app/tools/gimpcurvestool.c
==============================================================================
--- trunk/app/tools/gimpcurvestool.c (original)
+++ trunk/app/tools/gimpcurvestool.c Sat Nov 1 15:17:36 2008
@@ -70,7 +70,7 @@
GimpDisplay *display,
GError **error);
static void gimp_curves_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -79,7 +79,7 @@
GdkEventKey *kevent,
GimpDisplay *display);
static void gimp_curves_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -244,7 +244,7 @@
static void
gimp_curves_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -303,11 +303,11 @@
}
static void
-gimp_curves_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_curves_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpColorPickMode mode = GIMP_COLOR_PICK_MODE_NONE;
const gchar *status = NULL;
Modified: trunk/app/tools/gimpdodgeburntool.c
==============================================================================
--- trunk/app/tools/gimpdodgeburntool.c (original)
+++ trunk/app/tools/gimpdodgeburntool.c Sat Nov 1 15:17:36 2008
@@ -42,11 +42,11 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_dodge_burn_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static void gimp_dodge_burn_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -133,10 +133,10 @@
}
static void
-gimp_dodge_burn_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_dodge_burn_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpDodgeBurnOptions *options = GIMP_DODGE_BURN_TOOL_GET_OPTIONS (tool);
@@ -147,11 +147,11 @@
}
static void
-gimp_dodge_burn_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_dodge_burn_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpDodgeBurnOptions *options = GIMP_DODGE_BURN_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpeditselectiontool.c
==============================================================================
--- trunk/app/tools/gimpeditselectiontool.c (original)
+++ trunk/app/tools/gimpeditselectiontool.c Sat Nov 1 15:17:36 2008
@@ -103,13 +103,13 @@
static void gimp_edit_selection_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_edit_selection_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -183,7 +183,7 @@
void
gimp_edit_selection_tool_start (GimpTool *parent_tool,
GimpDisplay *display,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpTranslateMode edit_mode,
gboolean propagate_release)
{
@@ -464,7 +464,7 @@
static void
gimp_edit_selection_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -736,11 +736,11 @@
static void
-gimp_edit_selection_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_edit_selection_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpEditSelectionTool *edit_select = GIMP_EDIT_SELECTION_TOOL (tool);
Modified: trunk/app/tools/gimpeditselectiontool.h
==============================================================================
--- trunk/app/tools/gimpeditselectiontool.h (original)
+++ trunk/app/tools/gimpeditselectiontool.h Sat Nov 1 15:17:36 2008
@@ -34,7 +34,7 @@
void gimp_edit_selection_tool_start (GimpTool *parent_tool,
GimpDisplay *display,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpTranslateMode edit_mode,
gboolean propagate_release);
Modified: trunk/app/tools/gimperasertool.c
==============================================================================
--- trunk/app/tools/gimperasertool.c (original)
+++ trunk/app/tools/gimperasertool.c Sat Nov 1 15:17:36 2008
@@ -36,15 +36,15 @@
#include "gimp-intl.h"
-static void gimp_eraser_tool_modifier_key (GimpTool *tool,
- GdkModifierType key,
- gboolean press,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_eraser_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display);
+static void gimp_eraser_tool_modifier_key (GimpTool *tool,
+ GdkModifierType key,
+ gboolean press,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_eraser_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display);
static GtkWidget * gimp_eraser_options_gui (GimpToolOptions *tool_options);
@@ -119,10 +119,10 @@
}
static void
-gimp_eraser_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_eraser_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpEraserOptions *options = GIMP_ERASER_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpfliptool.c
==============================================================================
--- trunk/app/tools/gimpfliptool.c (original)
+++ trunk/app/tools/gimpfliptool.c Sat Nov 1 15:17:36 2008
@@ -53,7 +53,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_flip_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -149,10 +149,10 @@
}
static void
-gimp_flip_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_flip_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpFlipOptions *options = GIMP_FLIP_TOOL_GET_OPTIONS (tool);
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_BAD;
Modified: trunk/app/tools/gimpforegroundselecttool.c
==============================================================================
--- trunk/app/tools/gimpforegroundselecttool.c (original)
+++ trunk/app/tools/gimpforegroundselecttool.c Sat Nov 1 15:17:36 2008
@@ -63,49 +63,49 @@
} FgSelectStroke;
-static GObject * gimp_foreground_select_tool_constructor (GType type,
- guint n_params,
+static GObject * gimp_foreground_select_tool_constructor (GType type,
+ guint n_params,
GObjectConstructParam *params);
-static void gimp_foreground_select_tool_finalize (GObject *object);
+static void gimp_foreground_select_tool_finalize (GObject *object);
-static void gimp_foreground_select_tool_control (GimpTool *tool,
- GimpToolAction action,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_modifier_key (GimpTool *tool,
- GdkModifierType key,
- gboolean press,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display);
-static gboolean gimp_foreground_select_tool_key_press (GimpTool *tool,
- GdkEventKey *kevent,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
+static void gimp_foreground_select_tool_control (GimpTool *tool,
+ GimpToolAction action,
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_modifier_key (GimpTool *tool,
+ GdkModifierType key,
+ gboolean press,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display);
+static gboolean gimp_foreground_select_tool_key_press (GimpTool *tool,
+ GdkEventKey *kevent,
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_button_release (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
GimpButtonReleaseType release_type,
- GimpDisplay *display);
-static void gimp_foreground_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
+ GimpDisplay *display);
+static void gimp_foreground_select_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
-static void gimp_foreground_select_tool_draw (GimpDrawTool *draw_tool);
+static void gimp_foreground_select_tool_draw (GimpDrawTool *draw_tool);
static void gimp_foreground_select_tool_select (GimpFreeSelectTool *free_sel,
GimpDisplay *display);
@@ -284,11 +284,11 @@
}
static void
-gimp_foreground_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_foreground_select_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpForegroundSelectTool *fg_select = GIMP_FOREGROUND_SELECT_TOOL (tool);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
@@ -361,10 +361,10 @@
}
static void
-gimp_foreground_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_foreground_select_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpForegroundSelectTool *fg_select = GIMP_FOREGROUND_SELECT_TOOL (tool);
@@ -428,11 +428,11 @@
}
static void
-gimp_foreground_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_foreground_select_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpForegroundSelectTool *fg_select = GIMP_FOREGROUND_SELECT_TOOL (tool);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
@@ -470,7 +470,7 @@
static void
gimp_foreground_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -504,11 +504,11 @@
}
static void
-gimp_foreground_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_foreground_select_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpForegroundSelectTool *fg_select = GIMP_FOREGROUND_SELECT_TOOL (tool);
Modified: trunk/app/tools/gimpfreeselecttool.c
==============================================================================
--- trunk/app/tools/gimpfreeselecttool.c (original)
+++ trunk/app/tools/gimpfreeselecttool.c Sat Nov 1 15:17:36 2008
@@ -135,27 +135,27 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_free_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_free_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static void gimp_free_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_free_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_free_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -344,7 +344,7 @@
gimp_free_select_tool_should_close (GimpFreeSelectTool *fst,
GimpDisplay *display,
guint32 time,
- GimpCoords *coords)
+ const GimpCoords *coords)
{
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
gboolean double_click = FALSE;
@@ -397,7 +397,7 @@
static void
gimp_free_select_tool_handle_segment_selection (GimpFreeSelectTool *fst,
GimpDisplay *display,
- GimpCoords *coords)
+ const GimpCoords *coords)
{
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (fst);
@@ -550,7 +550,7 @@
static void
gimp_free_select_tool_start (GimpFreeSelectTool *fst,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpDisplay *display)
{
GimpTool *tool = GIMP_TOOL (fst);
@@ -842,7 +842,7 @@
static void
gimp_free_select_tool_handle_click (GimpFreeSelectTool *fst,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GimpDisplay *display)
{
@@ -886,7 +886,7 @@
static void
gimp_free_select_tool_handle_normal_release (GimpFreeSelectTool *fst,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpDisplay *display)
{
/* First finish of the free segment if no point was grabbed */
@@ -996,7 +996,7 @@
static gboolean
gimp_free_select_tool_delegate_button_press (GimpFreeSelectTool *fst,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpDisplay *display)
{
GimpTool *tool = GIMP_TOOL (fst);
@@ -1095,7 +1095,7 @@
static void
gimp_free_select_tool_status_update (GimpFreeSelectTool *fst,
GimpDisplay *display,
- GimpCoords *coords,
+ const GimpCoords *coords,
gboolean proximity)
{
GimpTool *tool = GIMP_TOOL (fst);
@@ -1157,11 +1157,11 @@
}
static void
-gimp_free_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_free_select_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
@@ -1234,10 +1234,10 @@
}
static void
-gimp_free_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_free_select_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
@@ -1273,11 +1273,11 @@
}
static void
-gimp_free_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_free_select_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
@@ -1343,7 +1343,7 @@
static void
gimp_free_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -1393,11 +1393,11 @@
}
static void
-gimp_free_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_free_select_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
Modified: trunk/app/tools/gimpiscissorstool.c
==============================================================================
--- trunk/app/tools/gimpiscissorstool.c (original)
+++ trunk/app/tools/gimpiscissorstool.c Sat Nov 1 15:17:36 2008
@@ -122,28 +122,28 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_iscissors_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_iscissors_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_iscissors_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_iscissors_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_iscissors_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static gboolean gimp_iscissors_tool_key_press (GimpTool *tool,
@@ -399,11 +399,11 @@
}
static void
-gimp_iscissors_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_iscissors_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpIscissorsTool *iscissors = GIMP_ISCISSORS_TOOL (tool);
GimpIscissorsOptions *options = GIMP_ISCISSORS_TOOL_GET_OPTIONS (tool);
@@ -557,7 +557,7 @@
static void
gimp_iscissors_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -673,11 +673,11 @@
}
static void
-gimp_iscissors_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_iscissors_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpIscissorsTool *iscissors = GIMP_ISCISSORS_TOOL (tool);
GimpIscissorsOptions *options = GIMP_ISCISSORS_TOOL_GET_OPTIONS (tool);
@@ -922,11 +922,11 @@
}
static void
-gimp_iscissors_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_iscissors_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpIscissorsTool *iscissors = GIMP_ISCISSORS_TOOL (tool);
@@ -1022,10 +1022,10 @@
}
static void
-gimp_iscissors_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_iscissors_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpIscissorsTool *iscissors = GIMP_ISCISSORS_TOOL (tool);
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_NONE;
Modified: trunk/app/tools/gimpmagnifytool.c
==============================================================================
--- trunk/app/tools/gimpmagnifytool.c (original)
+++ trunk/app/tools/gimpmagnifytool.c Sat Nov 1 15:17:36 2008
@@ -42,18 +42,18 @@
static void gimp_magnify_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_magnify_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_magnify_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -63,7 +63,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_magnify_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -133,11 +133,11 @@
}
static void
-gimp_magnify_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_magnify_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMagnifyTool *magnify = GIMP_MAGNIFY_TOOL (tool);
@@ -154,7 +154,7 @@
static void
gimp_magnify_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -294,11 +294,11 @@
}
static void
-gimp_magnify_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_magnify_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMagnifyTool *magnify = GIMP_MAGNIFY_TOOL (tool);
@@ -338,10 +338,10 @@
}
static void
-gimp_magnify_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_magnify_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMagnifyOptions *options = GIMP_MAGNIFY_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpmeasuretool.c
==============================================================================
--- trunk/app/tools/gimpmeasuretool.c (original)
+++ trunk/app/tools/gimpmeasuretool.c Sat Nov 1 15:17:36 2008
@@ -63,18 +63,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_measure_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_measure_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_measure_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -87,7 +87,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_measure_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -176,11 +176,11 @@
}
static void
-gimp_measure_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_measure_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMeasureTool *measure = GIMP_MEASURE_TOOL (tool);
GimpMeasureOptions *options = GIMP_MEASURE_TOOL_GET_OPTIONS (tool);
@@ -342,7 +342,7 @@
static void
gimp_measure_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -354,11 +354,11 @@
}
static void
-gimp_measure_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_measure_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMeasureTool *measure = GIMP_MEASURE_TOOL (tool);
gint dx, dy;
@@ -522,10 +522,10 @@
}
static void
-gimp_measure_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_measure_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMeasureTool *measure = GIMP_MEASURE_TOOL (tool);
gboolean in_handle = FALSE;
Modified: trunk/app/tools/gimpmovetool.c
==============================================================================
--- trunk/app/tools/gimpmovetool.c (original)
+++ trunk/app/tools/gimpmovetool.c Sat Nov 1 15:17:36 2008
@@ -71,18 +71,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_move_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_move_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_move_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -95,12 +95,12 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_move_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_move_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -202,11 +202,11 @@
}
static void
-gimp_move_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_move_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMoveTool *move = GIMP_MOVE_TOOL (tool);
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
@@ -349,7 +349,7 @@
static void
gimp_move_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -494,11 +494,11 @@
}
static void
-gimp_move_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_move_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpMoveTool *move = GIMP_MOVE_TOOL (tool);
@@ -644,11 +644,11 @@
}
static void
-gimp_move_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_move_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpMoveTool *move = GIMP_MOVE_TOOL (tool);
GimpMoveOptions *options = GIMP_MOVE_TOOL_GET_OPTIONS (tool);
@@ -680,10 +680,10 @@
}
static void
-gimp_move_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_move_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
GimpMoveOptions *options = GIMP_MOVE_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimppainttool.c
==============================================================================
--- trunk/app/tools/gimppainttool.c (original)
+++ trunk/app/tools/gimppainttool.c Sat Nov 1 15:17:36 2008
@@ -63,18 +63,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_paint_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_paint_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_paint_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -84,7 +84,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_paint_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -276,11 +276,11 @@
}
static void
-gimp_paint_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_paint_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
@@ -386,7 +386,7 @@
static void
gimp_paint_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -431,11 +431,11 @@
}
static void
-gimp_paint_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_paint_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpPaintOptions *paint_options = GIMP_PAINT_TOOL_GET_OPTIONS (tool);
@@ -534,11 +534,11 @@
}
static void
-gimp_paint_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_paint_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
Modified: trunk/app/tools/gimpperspectiveclonetool.c
==============================================================================
--- trunk/app/tools/gimpperspectiveclonetool.c (original)
+++ trunk/app/tools/gimpperspectiveclonetool.c Sat Nov 1 15:17:36 2008
@@ -58,39 +58,39 @@
GimpDisplay *display,
GError **error);
-static gboolean gimp_perspective_clone_tool_has_display (GimpTool *tool,
- GimpDisplay *display);
-static GimpDisplay * gimp_perspective_clone_tool_has_image (GimpTool *tool,
- GimpImage *image);
-static void gimp_perspective_clone_tool_control (GimpTool *tool,
- GimpToolAction action,
- GimpDisplay *display);
+static gboolean gimp_perspective_clone_tool_has_display (GimpTool *tool,
+ GimpDisplay *display);
+static GimpDisplay * gimp_perspective_clone_tool_has_image (GimpTool *tool,
+ GimpImage *image);
+static void gimp_perspective_clone_tool_control (GimpTool *tool,
+ GimpToolAction action,
+ GimpDisplay *display);
static void gimp_perspective_clone_tool_halt (GimpPerspectiveCloneTool *clone_tool);
-static void gimp_perspective_clone_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_perspective_clone_tool_button_release(GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
+static void gimp_perspective_clone_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_perspective_clone_tool_button_release(GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
GimpButtonReleaseType release_type,
- GimpDisplay *display);
-static void gimp_perspective_clone_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_perspective_clone_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_perspective_clone_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display);
+ GimpDisplay *display);
+static void gimp_perspective_clone_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_perspective_clone_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_perspective_clone_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display);
static void gimp_perspective_clone_tool_mode_notify (GimpPerspectiveCloneOptions *options,
GParamSpec *pspec,
@@ -322,11 +322,11 @@
}
static void
-gimp_perspective_clone_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_perspective_clone_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpPerspectiveCloneTool *clone_tool = GIMP_PERSPECTIVE_CLONE_TOOL (tool);
@@ -385,7 +385,7 @@
static void
gimp_perspective_clone_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -447,11 +447,11 @@
}
static void
-gimp_perspective_clone_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_perspective_clone_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpPerspectiveCloneTool *clone_tool = GIMP_PERSPECTIVE_CLONE_TOOL (tool);
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
@@ -530,10 +530,10 @@
}
static void
-gimp_perspective_clone_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_perspective_clone_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpPerspectiveCloneTool *clone_tool = GIMP_PERSPECTIVE_CLONE_TOOL (tool);
GimpPerspectiveCloneOptions *options;
@@ -611,11 +611,11 @@
}
static void
-gimp_perspective_clone_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_perspective_clone_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpPerspectiveCloneTool *clone_tool = GIMP_PERSPECTIVE_CLONE_TOOL (tool);
GimpPerspectiveCloneOptions *options;
Modified: trunk/app/tools/gimprectangleselecttool.c
==============================================================================
--- trunk/app/tools/gimprectangleselecttool.c (original)
+++ trunk/app/tools/gimprectangleselecttool.c Sat Nov 1 15:17:36 2008
@@ -88,12 +88,12 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_rectangle_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_rectangle_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -108,12 +108,12 @@
GdkEventKey *kevent,
GimpDisplay *display);
static void gimp_rectangle_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_rectangle_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static void gimp_rectangle_select_tool_draw (GimpDrawTool *draw_tool);
@@ -340,7 +340,7 @@
static gboolean
gimp_rectangle_select_tool_delegate_button_press (GimpRectangleSelectTool *rect_sel_tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GimpDisplay *display)
{
GimpTool *tool = GIMP_TOOL (rect_sel_tool);
@@ -367,11 +367,11 @@
}
static void
-gimp_rectangle_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_rectangle_select_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRectangleTool *rectangle;
GimpRectangleSelectTool *rect_sel_tool;
@@ -461,7 +461,7 @@
static void
gimp_rectangle_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -542,11 +542,11 @@
}
static void
-gimp_rectangle_select_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_rectangle_select_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpRectangleFunction function;
@@ -559,10 +559,10 @@
}
static void
-gimp_rectangle_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_rectangle_select_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
gimp_rectangle_tool_cursor_update (tool, coords, state, display);
Modified: trunk/app/tools/gimprectangletool.c
==============================================================================
--- trunk/app/tools/gimprectangletool.c (original)
+++ trunk/app/tools/gimprectangletool.c Sat Nov 1 15:17:36 2008
@@ -231,10 +231,10 @@
static void gimp_rectangle_tool_auto_shrink (GimpRectangleTool *rect_tool);
static gboolean gimp_rectangle_tool_coord_outside (GimpRectangleTool *rect_tool,
- GimpCoords *coords);
+ const GimpCoords *coords);
static gboolean gimp_rectangle_tool_coord_on_handle (GimpRectangleTool *rect_tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GtkAnchorType anchor);
static GtkAnchorType gimp_rectangle_tool_get_anchor (GimpRectangleToolPrivate *private);
@@ -263,7 +263,7 @@
gdouble coord_x,
gdouble coord_y);
static void gimp_rectangle_tool_setup_snap_offsets (GimpRectangleTool *rect_tool,
- GimpCoords *coords);
+ const GimpCoords *coords);
static void gimp_rectangle_tool_clamp (GimpRectangleTool *rect_tool,
ClampedSide *clamped_sides,
@@ -884,11 +884,11 @@
}
void
-gimp_rectangle_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_rectangle_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRectangleTool *rect_tool;
GimpDrawTool *draw_tool;
@@ -1003,7 +1003,7 @@
void
gimp_rectangle_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -1078,11 +1078,11 @@
}
void
-gimp_rectangle_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_rectangle_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRectangleTool *rect_tool;
GimpRectangleToolPrivate *private;
@@ -1553,11 +1553,11 @@
}
void
-gimp_rectangle_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_rectangle_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpRectangleToolPrivate *private;
GimpRectangleTool *rect_tool;
@@ -1647,10 +1647,10 @@
}
void
-gimp_rectangle_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_rectangle_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRectangleTool *rect_tool;
GimpRectangleToolPrivate *private;
@@ -2597,7 +2597,7 @@
*/
static gboolean
gimp_rectangle_tool_coord_outside (GimpRectangleTool *rect_tool,
- GimpCoords *coord)
+ const GimpCoords *coord)
{
GimpRectangleToolPrivate *private;
GimpDisplayShell *shell;
@@ -2631,7 +2631,7 @@
*/
static gboolean
gimp_rectangle_tool_coord_on_handle (GimpRectangleTool *rect_tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GtkAnchorType anchor)
{
GimpRectangleToolPrivate *private;
@@ -3115,7 +3115,7 @@
static void
gimp_rectangle_tool_setup_snap_offsets (GimpRectangleTool *rect_tool,
- GimpCoords *coords)
+ const GimpCoords *coords)
{
GimpTool *tool;
GimpRectangleToolPrivate *private;
Modified: trunk/app/tools/gimprectangletool.h
==============================================================================
--- trunk/app/tools/gimprectangletool.h (original)
+++ trunk/app/tools/gimprectangletool.h Sat Nov 1 15:17:36 2008
@@ -89,18 +89,18 @@
GimpToolAction action,
GimpDisplay *display);
void gimp_rectangle_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void gimp_rectangle_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
void gimp_rectangle_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -113,12 +113,12 @@
GdkModifierType state,
GimpDisplay *display);
void gimp_rectangle_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
void gimp_rectangle_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
void gimp_rectangle_tool_draw (GimpDrawTool *draw);
Modified: trunk/app/tools/gimpregionselecttool.c
==============================================================================
--- trunk/app/tools/gimpregionselecttool.c (original)
+++ trunk/app/tools/gimpregionselecttool.c Sat Nov 1 15:17:36 2008
@@ -51,23 +51,23 @@
static void gimp_region_select_tool_finalize (GObject *object);
static void gimp_region_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_region_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_region_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_region_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -140,11 +140,11 @@
}
static void
-gimp_region_select_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_region_select_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRegionSelectTool *region_sel = GIMP_REGION_SELECT_TOOL (tool);
GimpRegionSelectOptions *options = GIMP_REGION_SELECT_TOOL_GET_OPTIONS (tool);
@@ -171,7 +171,7 @@
static void
gimp_region_select_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -258,11 +258,11 @@
}
static void
-gimp_region_select_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_region_select_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRegionSelectTool *region_sel = GIMP_REGION_SELECT_TOOL (tool);
GimpRegionSelectOptions *options = GIMP_REGION_SELECT_TOOL_GET_OPTIONS (tool);
@@ -305,10 +305,10 @@
}
static void
-gimp_region_select_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_region_select_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpRegionSelectOptions *options = GIMP_REGION_SELECT_TOOL_GET_OPTIONS (tool);
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_NONE;
Modified: trunk/app/tools/gimpselectiontool.c
==============================================================================
--- trunk/app/tools/gimpselectiontool.c (original)
+++ trunk/app/tools/gimpselectiontool.c Sat Nov 1 15:17:36 2008
@@ -42,20 +42,20 @@
#include "gimp-intl.h"
-static void gimp_selection_tool_modifier_key (GimpTool *tool,
- GdkModifierType key,
- gboolean press,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_selection_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display);
-static void gimp_selection_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display);
+static void gimp_selection_tool_modifier_key (GimpTool *tool,
+ GdkModifierType key,
+ gboolean press,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_selection_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display);
+static void gimp_selection_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display);
G_DEFINE_TYPE (GimpSelectionTool, gimp_selection_tool, GIMP_TYPE_DRAW_TOOL)
@@ -152,11 +152,11 @@
}
static void
-gimp_selection_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_selection_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpSelectionTool *selection_tool = GIMP_SELECTION_TOOL (tool);
GimpSelectionOptions *options;
@@ -322,10 +322,10 @@
}
static void
-gimp_selection_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_selection_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpSelectionTool *selection_tool = GIMP_SELECTION_TOOL (tool);
GimpSelectionOptions *options;
@@ -391,7 +391,7 @@
gboolean
gimp_selection_tool_start_edit (GimpSelectionTool *sel_tool,
- GimpCoords *coords)
+ const GimpCoords *coords)
{
GimpTool *tool;
Modified: trunk/app/tools/gimpselectiontool.h
==============================================================================
--- trunk/app/tools/gimpselectiontool.h (original)
+++ trunk/app/tools/gimpselectiontool.h Sat Nov 1 15:17:36 2008
@@ -56,7 +56,7 @@
/* protected function */
gboolean gimp_selection_tool_start_edit (GimpSelectionTool *sel_tool,
- GimpCoords *coords);
+ const GimpCoords *coords);
#endif /* __GIMP_SELECTION_TOOL_H__ */
Modified: trunk/app/tools/gimpsourcetool.c
==============================================================================
--- trunk/app/tools/gimpsourcetool.c (original)
+++ trunk/app/tools/gimpsourcetool.c Sat Nov 1 15:17:36 2008
@@ -43,39 +43,39 @@
#define TARGET_SIZE 15
-static gboolean gimp_source_tool_has_display (GimpTool *tool,
- GimpDisplay *display);
-static GimpDisplay * gimp_source_tool_has_image (GimpTool *tool,
- GimpImage *image);
-static void gimp_source_tool_control (GimpTool *tool,
- GimpToolAction action,
- GimpDisplay *display);
-static void gimp_source_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_source_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_source_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_source_tool_modifier_key (GimpTool *tool,
- GdkModifierType key,
- gboolean press,
- GdkModifierType state,
- GimpDisplay *display);
-static void gimp_source_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display);
+static gboolean gimp_source_tool_has_display (GimpTool *tool,
+ GimpDisplay *display);
+static GimpDisplay * gimp_source_tool_has_image (GimpTool *tool,
+ GimpImage *image);
+static void gimp_source_tool_control (GimpTool *tool,
+ GimpToolAction action,
+ GimpDisplay *display);
+static void gimp_source_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_source_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_source_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_source_tool_modifier_key (GimpTool *tool,
+ GdkModifierType key,
+ gboolean press,
+ GdkModifierType state,
+ GimpDisplay *display);
+static void gimp_source_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display);
-static void gimp_source_tool_draw (GimpDrawTool *draw_tool);
+static void gimp_source_tool_draw (GimpDrawTool *draw_tool);
G_DEFINE_TYPE (GimpSourceTool, gimp_source_tool, GIMP_TYPE_BRUSH_TOOL)
@@ -167,11 +167,11 @@
}
static void
-gimp_source_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_source_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpSourceTool *source_tool = GIMP_SOURCE_TOOL (tool);
@@ -200,11 +200,11 @@
}
static void
-gimp_source_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_source_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpSourceTool *source_tool = GIMP_SOURCE_TOOL (tool);
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
@@ -256,10 +256,10 @@
}
static void
-gimp_source_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_source_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpSourceOptions *options = GIMP_SOURCE_TOOL_GET_OPTIONS (tool);
GimpCursorType cursor = GIMP_CURSOR_MOUSE;
@@ -284,11 +284,11 @@
}
static void
-gimp_source_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_source_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpSourceTool *source_tool = GIMP_SOURCE_TOOL (tool);
GimpSourceOptions *options = GIMP_SOURCE_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimptexttool.c
==============================================================================
--- trunk/app/tools/gimptexttool.c (original)
+++ trunk/app/tools/gimptexttool.c Sat Nov 1 15:17:36 2008
@@ -87,18 +87,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_text_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_text_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_text_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -106,11 +106,11 @@
GdkEventKey *kevent,
GimpDisplay *display);
static void gimp_text_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static GimpUIManager * gimp_text_tool_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path);
@@ -398,11 +398,11 @@
}
static void
-gimp_text_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_text_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpTextTool *text_tool = GIMP_TEXT_TOOL (tool);
GimpRectangleTool *rect_tool = GIMP_RECTANGLE_TOOL (tool);
@@ -474,9 +474,6 @@
gdouble x = coords->x - item->offset_x;
gdouble y = coords->y - item->offset_y;
- coords->x -= item->offset_x;
- coords->y -= item->offset_y;
-
if (x > 0 && x < gimp_item_width (item) &&
y > 0 && y < gimp_item_height (item))
{
@@ -554,7 +551,7 @@
*/
static void
gimp_text_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -647,11 +644,11 @@
}
void
-gimp_text_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_text_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpTextTool *text_tool = GIMP_TEXT_TOOL (tool);
@@ -921,10 +918,10 @@
}
static void
-gimp_text_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_text_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
if (tool->display == display)
{
@@ -956,7 +953,7 @@
static GimpUIManager *
gimp_text_tool_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path)
Modified: trunk/app/tools/gimptool.c
==============================================================================
--- trunk/app/tools/gimptool.c (original)
+++ trunk/app/tools/gimptool.c Sat Nov 1 15:17:36 2008
@@ -69,18 +69,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_tool_real_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_tool_real_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_tool_real_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -98,16 +98,16 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_tool_real_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_tool_real_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
static GimpUIManager * gimp_tool_real_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path);
@@ -288,11 +288,11 @@
}
static void
-gimp_tool_real_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_real_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
tool->display = display;
tool->drawable = gimp_image_get_active_drawable (display->image);
@@ -302,7 +302,7 @@
static void
gimp_tool_real_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -312,11 +312,11 @@
}
static void
-gimp_tool_real_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_real_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
}
@@ -347,19 +347,19 @@
}
static void
-gimp_tool_real_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_tool_real_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
}
static void
-gimp_tool_real_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_real_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
gimp_tool_set_cursor (tool, display,
gimp_tool_control_get_cursor (tool->control),
@@ -369,7 +369,7 @@
static GimpUIManager *
gimp_tool_real_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path)
@@ -497,11 +497,11 @@
}
void
-gimp_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
g_return_if_fail (GIMP_IS_TOOL (tool));
g_return_if_fail (coords != NULL);
@@ -530,10 +530,10 @@
}
static gboolean
-gimp_tool_check_click_distance (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GimpDisplay *display)
+gimp_tool_check_click_distance (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GimpDisplay *display)
{
gint double_click_time;
gint double_click_distance;
@@ -569,11 +569,11 @@
}
void
-gimp_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_button_release (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpButtonReleaseType release_type = GIMP_BUTTON_RELEASE_NORMAL;
GimpCoords my_coords;
@@ -622,11 +622,11 @@
}
void
-gimp_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
g_return_if_fail (GIMP_IS_TOOL (tool));
g_return_if_fail (coords != NULL);
@@ -825,11 +825,11 @@
}
void
-gimp_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
g_return_if_fail (GIMP_IS_TOOL (tool));
g_return_if_fail (coords != NULL);
@@ -840,10 +840,10 @@
}
void
-gimp_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
g_return_if_fail (GIMP_IS_TOOL (tool));
g_return_if_fail (coords != NULL);
@@ -854,7 +854,7 @@
GimpUIManager *
gimp_tool_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path)
Modified: trunk/app/tools/gimptool.h
==============================================================================
--- trunk/app/tools/gimptool.h (original)
+++ trunk/app/tools/gimptool.h Sat Nov 1 15:17:36 2008
@@ -89,18 +89,18 @@
GimpDisplay *display);
void (* button_press) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void (* button_release) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
void (* motion) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -120,17 +120,17 @@
GimpDisplay *display);
void (* oper_update) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
void (* cursor_update) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
GimpUIManager * (* get_popup) (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path);
@@ -153,17 +153,17 @@
GimpDisplay *display);
void gimp_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void gimp_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void gimp_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -182,17 +182,17 @@
GimpDisplay *display);
void gimp_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
void gimp_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
GimpUIManager * gimp_tool_get_popup (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path);
Modified: trunk/app/tools/gimptransformtool.c
==============================================================================
--- trunk/app/tools/gimptransformtool.c (original)
+++ trunk/app/tools/gimptransformtool.c Sat Nov 1 15:17:36 2008
@@ -83,18 +83,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_transform_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_transform_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_transform_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -107,12 +107,12 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_transform_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
static void gimp_transform_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -400,11 +400,11 @@
}
static void
-gimp_transform_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_transform_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
@@ -419,7 +419,7 @@
static void
gimp_transform_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -464,11 +464,11 @@
}
static void
-gimp_transform_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_transform_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
GimpTransformToolClass *tr_tool_class;
@@ -550,11 +550,11 @@
}
static void
-gimp_transform_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_transform_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
@@ -679,10 +679,10 @@
}
static void
-gimp_transform_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_transform_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
GimpTransformOptions *options = GIMP_TRANSFORM_TOOL_GET_OPTIONS (tool);
Modified: trunk/app/tools/gimpvectortool.c
==============================================================================
--- trunk/app/tools/gimpvectortool.c (original)
+++ trunk/app/tools/gimpvectortool.c Sat Nov 1 15:17:36 2008
@@ -75,18 +75,18 @@
GimpToolAction action,
GimpDisplay *display);
static void gimp_vector_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
static void gimp_vector_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
GimpDisplay *display);
static void gimp_vector_tool_motion (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -99,7 +99,7 @@
GdkModifierType state,
GimpDisplay *display);
static void gimp_vector_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
@@ -108,7 +108,7 @@
GdkModifierType state,
gboolean proximity);
static void gimp_vector_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
@@ -244,11 +244,11 @@
}
static void
-gimp_vector_tool_button_press (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_vector_tool_button_press (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
GimpVectorTool *vector_tool = GIMP_VECTOR_TOOL (tool);
@@ -615,7 +615,7 @@
static void
gimp_vector_tool_button_release (GimpTool *tool,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpButtonReleaseType release_type,
@@ -649,11 +649,11 @@
}
static void
-gimp_vector_tool_motion (GimpTool *tool,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_vector_tool_motion (GimpTool *tool,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpVectorTool *vector_tool = GIMP_VECTOR_TOOL (tool);
GimpVectorOptions *options = GIMP_VECTOR_TOOL_GET_OPTIONS (tool);
@@ -903,11 +903,11 @@
}
static void
-gimp_vector_tool_oper_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+gimp_vector_tool_oper_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpVectorTool *vector_tool = GIMP_VECTOR_TOOL (tool);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
@@ -1274,10 +1274,10 @@
}
static void
-gimp_vector_tool_cursor_update (GimpTool *tool,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+gimp_vector_tool_cursor_update (GimpTool *tool,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpVectorTool *vector_tool = GIMP_VECTOR_TOOL (tool);
GimpToolCursorType tool_cursor = GIMP_TOOL_CURSOR_PATHS;
Modified: trunk/app/tools/tool_manager.c
==============================================================================
--- trunk/app/tools/tool_manager.c (original)
+++ trunk/app/tools/tool_manager.c Sat Nov 1 15:17:36 2008
@@ -273,11 +273,11 @@
}
void
-tool_manager_button_press_active (Gimp *gimp,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+tool_manager_button_press_active (Gimp *gimp,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpToolManager *tool_manager;
@@ -294,11 +294,11 @@
}
void
-tool_manager_button_release_active (Gimp *gimp,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+tool_manager_button_release_active (Gimp *gimp,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpToolManager *tool_manager;
@@ -315,11 +315,11 @@
}
void
-tool_manager_motion_active (Gimp *gimp,
- GimpCoords *coords,
- guint32 time,
- GdkModifierType state,
- GimpDisplay *display)
+tool_manager_motion_active (Gimp *gimp,
+ const GimpCoords *coords,
+ guint32 time,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpToolManager *tool_manager;
@@ -412,11 +412,11 @@
}
void
-tool_manager_oper_update_active (Gimp *gimp,
- GimpCoords *coords,
- GdkModifierType state,
- gboolean proximity,
- GimpDisplay *display)
+tool_manager_oper_update_active (Gimp *gimp,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ gboolean proximity,
+ GimpDisplay *display)
{
GimpToolManager *tool_manager;
@@ -433,10 +433,10 @@
}
void
-tool_manager_cursor_update_active (Gimp *gimp,
- GimpCoords *coords,
- GdkModifierType state,
- GimpDisplay *display)
+tool_manager_cursor_update_active (Gimp *gimp,
+ const GimpCoords *coords,
+ GdkModifierType state,
+ GimpDisplay *display)
{
GimpToolManager *tool_manager;
@@ -454,7 +454,7 @@
GimpUIManager *
tool_manager_get_popup_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path)
Modified: trunk/app/tools/tool_manager.h
==============================================================================
--- trunk/app/tools/tool_manager.h (original)
+++ trunk/app/tools/tool_manager.h Sat Nov 1 15:17:36 2008
@@ -39,17 +39,17 @@
GimpToolAction action,
GimpDisplay *display);
void tool_manager_button_press_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void tool_manager_button_release_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
void tool_manager_motion_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
guint32 time,
GdkModifierType state,
GimpDisplay *display);
@@ -68,17 +68,17 @@
GimpDisplay *display);
void tool_manager_oper_update_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
gboolean proximity,
GimpDisplay *display);
void tool_manager_cursor_update_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display);
GimpUIManager * tool_manager_get_popup_active (Gimp *gimp,
- GimpCoords *coords,
+ const GimpCoords *coords,
GdkModifierType state,
GimpDisplay *display,
const gchar **ui_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]