constify input strings, colors, and arrays

2003-07-02  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/lib.pl: constify input strings, colors, and arrays

        * libgimp/*_pdb.[ch]: regenerated
This commit is contained in:
Manish Singh 2003-07-02 01:20:08 +00:00 committed by Manish Singh
parent 1016c682c8
commit d46b87b1e4
56 changed files with 454 additions and 441 deletions

View File

@ -1,3 +1,9 @@
2003-07-02 Manish Singh <yosh@gimp.org>
* tools/pdbgen/lib.pl: constify input strings, colors, and arrays
* libgimp/*_pdb.[ch]: regenerated
2003-07-02 Sven Neumann <sven@gimp.org>
* plug-ins: more plug-ins adapted to libgimp changes.

View File

@ -152,7 +152,7 @@ gimp_brushes_get_brush (gint *width,
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_set_brush (gchar *name)
gimp_brushes_set_brush (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -379,7 +379,7 @@ gimp_brushes_set_paint_mode (GimpLayerModeEffects paint_mode)
* Returns: The brush name.
*/
gchar *
gimp_brushes_get_brush_data (gchar *name,
gimp_brushes_get_brush_data (const gchar *name,
gdouble *opacity,
gint *spacing,
GimpLayerModeEffects *paint_mode,

View File

@ -34,14 +34,14 @@ gchar** gimp_brushes_get_list (gint *num_bru
gchar* gimp_brushes_get_brush (gint *width,
gint *height,
gint *spacing);
gboolean gimp_brushes_set_brush (gchar *name);
gboolean gimp_brushes_set_brush (const gchar *name);
gdouble gimp_brushes_get_opacity (void);
gboolean gimp_brushes_set_opacity (gdouble opacity);
gint gimp_brushes_get_spacing (void);
gboolean gimp_brushes_set_spacing (gint spacing);
GimpLayerModeEffects gimp_brushes_get_paint_mode (void);
gboolean gimp_brushes_set_paint_mode (GimpLayerModeEffects paint_mode);
gchar* gimp_brushes_get_brush_data (gchar *name,
gchar* gimp_brushes_get_brush_data (const gchar *name,
gdouble *opacity,
gint *spacing,
GimpLayerModeEffects *paint_mode,

View File

@ -41,9 +41,9 @@
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_popup (gchar *brush_callback,
gchar *popup_title,
gchar *initial_brush,
gimp_brushes_popup (const gchar *brush_callback,
const gchar *popup_title,
const gchar *initial_brush,
gdouble opacity,
gint spacing,
GimpLayerModeEffects paint_mode)
@ -80,7 +80,7 @@ gimp_brushes_popup (gchar *brush_callback,
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_close_popup (gchar *brush_callback)
gimp_brushes_close_popup (const gchar *brush_callback)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -113,8 +113,8 @@ gimp_brushes_close_popup (gchar *brush_callback)
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_set_popup (gchar *brush_callback,
gchar *brush_name,
gimp_brushes_set_popup (const gchar *brush_callback,
const gchar *brush_name,
gdouble opacity,
gint spacing,
GimpLayerModeEffects paint_mode)

View File

@ -29,15 +29,15 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_brushes_popup (gchar *brush_callback,
gchar *popup_title,
gchar *initial_brush,
gboolean gimp_brushes_popup (const gchar *brush_callback,
const gchar *popup_title,
const gchar *initial_brush,
gdouble opacity,
gint spacing,
GimpLayerModeEffects paint_mode);
gboolean gimp_brushes_close_popup (gchar *brush_callback);
gboolean gimp_brushes_set_popup (gchar *brush_callback,
gchar *brush_name,
gboolean gimp_brushes_close_popup (const gchar *brush_callback);
gboolean gimp_brushes_set_popup (const gchar *brush_callback,
const gchar *brush_name,
gdouble opacity,
gint spacing,
GimpLayerModeEffects paint_mode);

View File

@ -50,9 +50,9 @@ gint32
_gimp_channel_new (gint32 image_ID,
gint width,
gint height,
gchar *name,
const gchar *name,
gdouble opacity,
GimpRGB *color)
const GimpRGB *color)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -224,7 +224,7 @@ gimp_channel_get_name (gint32 channel_ID)
*/
gboolean
gimp_channel_set_name (gint32 channel_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -481,7 +481,7 @@ gimp_channel_get_color (gint32 channel_ID,
*/
gboolean
gimp_channel_set_color (gint32 channel_ID,
GimpRGB *color)
const GimpRGB *color)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -32,9 +32,9 @@ G_BEGIN_DECLS
gint32 _gimp_channel_new (gint32 image_ID,
gint width,
gint height,
gchar *name,
const gchar *name,
gdouble opacity,
GimpRGB *color);
const GimpRGB *color);
gint32 gimp_channel_copy (gint32 channel_ID);
gboolean gimp_channel_delete (gint32 channel_ID);
gboolean gimp_channel_combine_masks (gint32 channel1_ID,
@ -44,7 +44,7 @@ gboolean gimp_channel_combine_masks (gint32 channel1_ID,
gint offy);
gchar* gimp_channel_get_name (gint32 channel_ID);
gboolean gimp_channel_set_name (gint32 channel_ID,
gchar *name);
const gchar *name);
gboolean gimp_channel_get_visible (gint32 channel_ID);
gboolean gimp_channel_set_visible (gint32 channel_ID,
gboolean visible);
@ -57,7 +57,7 @@ gboolean gimp_channel_set_opacity (gint32 channel_ID,
gboolean gimp_channel_get_color (gint32 channel_ID,
GimpRGB *color);
gboolean gimp_channel_set_color (gint32 channel_ID,
GimpRGB *color);
const GimpRGB *color);
gint gimp_channel_get_tattoo (gint32 channel_ID);
gboolean gimp_channel_set_tattoo (gint32 channel_ID,
gint tattoo);

View File

@ -277,7 +277,7 @@ gboolean
gimp_curves_spline (gint32 drawable_ID,
GimpChannelLutType channel,
gint num_points,
guint8 *control_pts)
const guint8 *control_pts)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -321,7 +321,7 @@ gboolean
gimp_curves_explicit (gint32 drawable_ID,
GimpChannelLutType channel,
gint num_bytes,
guint8 *curve)
const guint8 *curve)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -48,11 +48,11 @@ gboolean gimp_invert (gint32 drawable_ID);
gboolean gimp_curves_spline (gint32 drawable_ID,
GimpChannelLutType channel,
gint num_points,
guint8 *control_pts);
const guint8 *control_pts);
gboolean gimp_curves_explicit (gint32 drawable_ID,
GimpChannelLutType channel,
gint num_bytes,
guint8 *curve);
const guint8 *curve);
gboolean gimp_color_balance (gint32 drawable_ID,
GimpTransferMode transfer_mode,
gboolean preserve_lum,

View File

@ -123,7 +123,7 @@ gimp_convert_indexed (gint32 image_ID,
gint num_cols,
gboolean alpha_dither,
gboolean remove_unused,
gchar *palette)
const gchar *palette)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -37,7 +37,7 @@ gboolean gimp_convert_indexed (gint32 image_ID,
gint num_cols,
gboolean alpha_dither,
gboolean remove_unused,
gchar *palette);
const gchar *palette);
G_END_DECLS

View File

@ -44,8 +44,8 @@
*/
gint32
gimp_file_load (GimpRunMode run_mode,
gchar *filename,
gchar *raw_filename)
const gchar *filename,
const gchar *raw_filename)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -89,8 +89,8 @@ gboolean
gimp_file_save (GimpRunMode run_mode,
gint32 image_ID,
gint32 drawable_ID,
gchar *filename,
gchar *raw_filename)
const gchar *filename,
const gchar *raw_filename)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -124,7 +124,7 @@ gimp_file_save (GimpRunMode run_mode,
* Returns: The new temp filename.
*/
gchar *
gimp_temp_name (gchar *extension)
gimp_temp_name (const gchar *extension)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -158,10 +158,10 @@ gimp_temp_name (gchar *extension)
* Returns: TRUE on success.
*/
gboolean
gimp_register_magic_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes,
gchar *magics)
gimp_register_magic_load_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes,
const gchar *magics)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -196,9 +196,9 @@ gimp_register_magic_load_handler (gchar *procedure_name,
* Returns: TRUE on success.
*/
gboolean
gimp_register_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes)
gimp_register_load_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -232,9 +232,9 @@ gimp_register_load_handler (gchar *procedure_name,
* Returns: TRUE on success.
*/
gboolean
gimp_register_save_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes)
gimp_register_save_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -30,24 +30,24 @@ G_BEGIN_DECLS
gint32 gimp_file_load (GimpRunMode run_mode,
gchar *filename,
gchar *raw_filename);
const gchar *filename,
const gchar *raw_filename);
gboolean gimp_file_save (GimpRunMode run_mode,
gint32 image_ID,
gint32 drawable_ID,
gchar *filename,
gchar *raw_filename);
gchar* gimp_temp_name (gchar *extension);
gboolean gimp_register_magic_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes,
gchar *magics);
gboolean gimp_register_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
gboolean gimp_register_save_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
const gchar *filename,
const gchar *raw_filename);
gchar* gimp_temp_name (const gchar *extension);
gboolean gimp_register_magic_load_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes,
const gchar *magics);
gboolean gimp_register_load_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);
gboolean gimp_register_save_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);
G_END_DECLS

View File

@ -38,9 +38,9 @@
* Returns: TRUE on success.
*/
gboolean
gimp_fonts_popup (gchar *font_callback,
gchar *popup_title,
gchar *initial_font)
gimp_fonts_popup (const gchar *font_callback,
const gchar *popup_title,
const gchar *initial_font)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -71,7 +71,7 @@ gimp_fonts_popup (gchar *font_callback,
* Returns: TRUE on success.
*/
gboolean
gimp_fonts_close_popup (gchar *font_callback)
gimp_fonts_close_popup (const gchar *font_callback)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -101,8 +101,8 @@ gimp_fonts_close_popup (gchar *font_callback)
* Returns: TRUE on success.
*/
gboolean
gimp_fonts_set_popup (gchar *font_callback,
gchar *font_name)
gimp_fonts_set_popup (const gchar *font_callback,
const gchar *font_name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,12 +29,12 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_fonts_popup (gchar *font_callback,
gchar *popup_title,
gchar *initial_font);
gboolean gimp_fonts_close_popup (gchar *font_callback);
gboolean gimp_fonts_set_popup (gchar *font_callback,
gchar *font_name);
gboolean gimp_fonts_popup (const gchar *font_callback,
const gchar *popup_title,
const gchar *initial_font);
gboolean gimp_fonts_close_popup (const gchar *font_callback);
gboolean gimp_fonts_set_popup (const gchar *font_callback,
const gchar *font_name);
G_END_DECLS

View File

@ -44,7 +44,7 @@
* Returns: The value associated with the queried token.
*/
gchar *
gimp_gimprc_query (gchar *token)
gimp_gimprc_query (const gchar *token)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -82,8 +82,8 @@ gimp_gimprc_query (gchar *token)
* Returns: TRUE on success.
*/
gboolean
gimp_gimprc_set (gchar *token,
gchar *value)
gimp_gimprc_set (const gchar *token,
const gchar *value)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,9 +29,9 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gchar* gimp_gimprc_query (gchar *token);
gboolean gimp_gimprc_set (gchar *token,
gchar *value);
gchar* gimp_gimprc_query (const gchar *token);
gboolean gimp_gimprc_set (const gchar *token,
const gchar *value);
gchar* gimp_get_default_comment (void);
gboolean gimp_get_monitor_resolution (gdouble *xres,
gdouble *yres);

View File

@ -139,7 +139,7 @@ gimp_gradients_get_gradient (void)
* Returns: TRUE on success.
*/
gboolean
gimp_gradients_set_gradient (gchar *name)
gimp_gradients_set_gradient (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -217,7 +217,7 @@ gimp_gradients_sample_uniform (gint num_samples)
*/
gdouble *
gimp_gradients_sample_custom (gint num_samples,
gdouble *positions)
const gdouble *positions)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -258,7 +258,7 @@ gimp_gradients_sample_custom (gint num_samples,
* Returns: The gradient name.
*/
gchar *
gimp_gradients_get_gradient_data (gchar *name,
gimp_gradients_get_gradient_data (const gchar *name,
gint sample_size,
gint *width,
gdouble **grad_data)

View File

@ -32,11 +32,11 @@ G_BEGIN_DECLS
gboolean gimp_gradients_refresh (void);
gchar** gimp_gradients_get_list (gint *num_gradients);
gchar* gimp_gradients_get_gradient (void);
gboolean gimp_gradients_set_gradient (gchar *name);
gboolean gimp_gradients_set_gradient (const gchar *name);
gdouble* gimp_gradients_sample_uniform (gint num_samples);
gdouble* gimp_gradients_sample_custom (gint num_samples,
gdouble *positions);
gchar* gimp_gradients_get_gradient_data (gchar *name,
const gdouble *positions);
gchar* gimp_gradients_get_gradient_data (const gchar *name,
gint sample_size,
gint *width,
gdouble **grad_data);

View File

@ -39,9 +39,9 @@
* Returns: TRUE on success.
*/
gboolean
gimp_gradients_popup (gchar *gradient_callback,
gchar *popup_title,
gchar *initial_gradient,
gimp_gradients_popup (const gchar *gradient_callback,
const gchar *popup_title,
const gchar *initial_gradient,
gint sample_size)
{
GimpParam *return_vals;
@ -74,7 +74,7 @@ gimp_gradients_popup (gchar *gradient_callback,
* Returns: TRUE on success.
*/
gboolean
gimp_gradients_close_popup (gchar *gradient_callback)
gimp_gradients_close_popup (const gchar *gradient_callback)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -104,8 +104,8 @@ gimp_gradients_close_popup (gchar *gradient_callback)
* Returns: TRUE on success.
*/
gboolean
gimp_gradients_set_popup (gchar *gradient_callback,
gchar *gradient_name)
gimp_gradients_set_popup (const gchar *gradient_callback,
const gchar *gradient_name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,13 +29,13 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_gradients_popup (gchar *gradient_callback,
gchar *popup_title,
gchar *initial_gradient,
gboolean gimp_gradients_popup (const gchar *gradient_callback,
const gchar *popup_title,
const gchar *initial_gradient,
gint sample_size);
gboolean gimp_gradients_close_popup (gchar *gradient_callback);
gboolean gimp_gradients_set_popup (gchar *gradient_callback,
gchar *gradient_name);
gboolean gimp_gradients_close_popup (const gchar *gradient_callback);
gboolean gimp_gradients_set_popup (const gchar *gradient_callback,
const gchar *gradient_name);
G_END_DECLS

View File

@ -44,8 +44,8 @@
* Returns: TRUE on success.
*/
gboolean
gimp_help (gchar *prog_name,
gchar *help_page)
gimp_help (const gchar *prog_name,
const gchar *help_page)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,8 +29,8 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_help (gchar *prog_name,
gchar *help_page);
gboolean gimp_help (const gchar *prog_name,
const gchar *help_page);
G_END_DECLS

View File

@ -1158,7 +1158,7 @@ _gimp_image_get_cmap (gint32 image_ID,
gboolean
_gimp_image_set_cmap (gint32 image_ID,
gint num_bytes,
guint8 *cmap)
const guint8 *cmap)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -2074,7 +2074,7 @@ gimp_image_get_filename (gint32 image_ID)
*/
gboolean
gimp_image_set_filename (gint32 image_ID,
gchar *filename)
const gchar *filename)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -98,7 +98,7 @@ guint8* _gimp_image_get_cmap (gint32 ima
gint *num_bytes);
gboolean _gimp_image_set_cmap (gint32 image_ID,
gint num_bytes,
guint8 *cmap);
const guint8 *cmap);
gboolean gimp_image_undo_is_enabled (gint32 image_ID);
gboolean gimp_image_undo_enable (gint32 image_ID);
gboolean gimp_image_undo_disable (gint32 image_ID);
@ -141,7 +141,7 @@ gboolean gimp_image_set_component_visible (gint32 ima
gboolean visible);
gchar* gimp_image_get_filename (gint32 image_ID);
gboolean gimp_image_set_filename (gint32 image_ID,
gchar *filename);
const gchar *filename);
gchar* gimp_image_get_name (gint32 image_ID);
gboolean gimp_image_get_resolution (gint32 image_ID,
gdouble *xresolution,

View File

@ -51,7 +51,7 @@ _gimp_layer_new (gint32 image_ID,
gint width,
gint height,
GimpImageType type,
gchar *name,
const gchar *name,
gdouble opacity,
GimpLayerModeEffects mode)
{
@ -531,7 +531,7 @@ gimp_layer_get_name (gint32 layer_ID)
*/
gboolean
gimp_layer_set_name (gint32 layer_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -33,7 +33,7 @@ gint32 _gimp_layer_new (gint32 image_
gint width,
gint height,
GimpImageType type,
gchar *name,
const gchar *name,
gdouble opacity,
GimpLayerModeEffects mode);
gint32 _gimp_layer_copy (gint32 layer_ID,
@ -63,7 +63,7 @@ gint32 gimp_layer_new_from_drawable (gint32 drawab
gint32 dest_image_ID);
gchar* gimp_layer_get_name (gint32 layer_ID);
gboolean gimp_layer_set_name (gint32 layer_ID,
gchar *name);
const gchar *name);
gboolean gimp_layer_get_visible (gint32 layer_ID);
gboolean gimp_layer_set_visible (gint32 layer_ID,
gboolean visible);

View File

@ -37,7 +37,7 @@
* Returns: TRUE on success.
*/
gboolean
gimp_message (gchar *message)
gimp_message (const gchar *message)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,7 +29,7 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_message (gchar *message);
gboolean gimp_message (const gchar *message);
GimpMessageHandlerType gimp_message_get_handler (void);
gboolean gimp_message_set_handler (GimpMessageHandlerType handler);

View File

@ -46,7 +46,7 @@ gboolean
gimp_airbrush (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -86,7 +86,7 @@ gimp_airbrush (gint32 drawable_ID,
gboolean
gimp_airbrush_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -140,7 +140,7 @@ gimp_clone (gint32 drawable_ID,
gdouble src_x,
gdouble src_y,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -184,7 +184,7 @@ gimp_clone (gint32 drawable_ID,
gboolean
gimp_clone_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -226,7 +226,7 @@ gimp_convolve (gint32 drawable_ID,
gdouble pressure,
GimpConvolveType convolve_type,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -267,7 +267,7 @@ gimp_convolve (gint32 drawable_ID,
gboolean
gimp_convolve_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -308,7 +308,7 @@ gimp_dodgeburn (gint32 drawable_ID,
GimpDodgeBurnType dodgeburn_type,
GimpTransferMode dodgeburn_mode,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -349,7 +349,7 @@ gimp_dodgeburn (gint32 drawable_ID,
gboolean
gimp_dodgeburn_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -390,7 +390,7 @@ gimp_dodgeburn_default (gint32 drawable_ID,
gboolean
gimp_eraser (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes,
const gdouble *strokes,
GimpBrushApplicationMode hardness,
GimpPaintApplicationMode method)
{
@ -433,7 +433,7 @@ gimp_eraser (gint32 drawable_ID,
gboolean
gimp_eraser_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -482,7 +482,7 @@ gboolean
gimp_paintbrush (gint32 drawable_ID,
gdouble fade_out,
gint num_strokes,
gdouble *strokes,
const gdouble *strokes,
GimpPaintApplicationMode method,
gdouble gradient_length)
{
@ -535,7 +535,7 @@ gimp_paintbrush (gint32 drawable_ID,
gboolean
gimp_paintbrush_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -575,7 +575,7 @@ gimp_paintbrush_default (gint32 drawable_ID,
gboolean
gimp_pencil (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -614,7 +614,7 @@ gboolean
gimp_smudge (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -653,7 +653,7 @@ gimp_smudge (gint32 drawable_ID,
gboolean
gimp_smudge_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes)
const gdouble *strokes)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -32,64 +32,64 @@ G_BEGIN_DECLS
gboolean gimp_airbrush (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_airbrush_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_clone (gint32 drawable_ID,
gint32 src_drawable_ID,
GimpCloneType clone_type,
gdouble src_x,
gdouble src_y,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_clone_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_convolve (gint32 drawable_ID,
gdouble pressure,
GimpConvolveType convolve_type,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_convolve_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_dodgeburn (gint32 drawable_ID,
gdouble exposure,
GimpDodgeBurnType dodgeburn_type,
GimpTransferMode dodgeburn_mode,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_dodgeburn_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_eraser (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes,
const gdouble *strokes,
GimpBrushApplicationMode hardness,
GimpPaintApplicationMode method);
gboolean gimp_eraser_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_paintbrush (gint32 drawable_ID,
gdouble fade_out,
gint num_strokes,
gdouble *strokes,
const gdouble *strokes,
GimpPaintApplicationMode method,
gdouble gradient_length);
gboolean gimp_paintbrush_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_pencil (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_smudge (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
gboolean gimp_smudge_default (gint32 drawable_ID,
gint num_strokes,
gdouble *strokes);
const gdouble *strokes);
G_END_DECLS

View File

@ -104,7 +104,7 @@ gimp_palette_get_background (GimpRGB *background)
* Returns: TRUE on success.
*/
gboolean
gimp_palette_set_foreground (GimpRGB *foreground)
gimp_palette_set_foreground (const GimpRGB *foreground)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -136,7 +136,7 @@ gimp_palette_set_foreground (GimpRGB *foreground)
* Returns: TRUE on success.
*/
gboolean
gimp_palette_set_background (GimpRGB *background)
gimp_palette_set_background (const GimpRGB *background)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -31,8 +31,8 @@ G_BEGIN_DECLS
gboolean gimp_palette_get_foreground (GimpRGB *foreground);
gboolean gimp_palette_get_background (GimpRGB *background);
gboolean gimp_palette_set_foreground (GimpRGB *foreground);
gboolean gimp_palette_set_background (GimpRGB *background);
gboolean gimp_palette_set_foreground (const GimpRGB *foreground);
gboolean gimp_palette_set_background (const GimpRGB *background);
gboolean gimp_palette_set_default_colors (void);
gboolean gimp_palette_swap_colors (void);

View File

@ -141,7 +141,7 @@ gimp_palettes_get_palette (gint *num_colors)
* Returns: TRUE on success.
*/
gboolean
gimp_palettes_set_palette (gchar *name)
gimp_palettes_set_palette (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -175,7 +175,7 @@ gimp_palettes_set_palette (gchar *name)
* Returns: The palette name.
*/
gchar *
gimp_palettes_get_palette_entry (gchar *name,
gimp_palettes_get_palette_entry (const gchar *name,
gint entry_num,
gint *num_colors,
GimpRGB *color)

View File

@ -32,8 +32,8 @@ G_BEGIN_DECLS
gboolean gimp_palettes_refresh (void);
gchar** gimp_palettes_get_list (gint *num_palettes);
gchar* gimp_palettes_get_palette (gint *num_colors);
gboolean gimp_palettes_set_palette (gchar *name);
gchar* gimp_palettes_get_palette_entry (gchar *name,
gboolean gimp_palettes_set_palette (const gchar *name);
gchar* gimp_palettes_get_palette_entry (const gchar *name,
gint entry_num,
gint *num_colors,
GimpRGB *color);

View File

@ -38,9 +38,9 @@
* Returns: TRUE on success.
*/
gboolean
gimp_palettes_popup (gchar *palette_callback,
gchar *popup_title,
gchar *initial_palette)
gimp_palettes_popup (const gchar *palette_callback,
const gchar *popup_title,
const gchar *initial_palette)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -71,7 +71,7 @@ gimp_palettes_popup (gchar *palette_callback,
* Returns: TRUE on success.
*/
gboolean
gimp_palettes_close_popup (gchar *palette_callback)
gimp_palettes_close_popup (const gchar *palette_callback)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -101,8 +101,8 @@ gimp_palettes_close_popup (gchar *palette_callback)
* Returns: TRUE on success.
*/
gboolean
gimp_palettes_set_popup (gchar *palette_callback,
gchar *palette_name)
gimp_palettes_set_popup (const gchar *palette_callback,
const gchar *palette_name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,12 +29,12 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_palettes_popup (gchar *palette_callback,
gchar *popup_title,
gchar *initial_palette);
gboolean gimp_palettes_close_popup (gchar *palette_callback);
gboolean gimp_palettes_set_popup (gchar *palette_callback,
gchar *palette_name);
gboolean gimp_palettes_popup (const gchar *palette_callback,
const gchar *popup_title,
const gchar *initial_palette);
gboolean gimp_palettes_close_popup (const gchar *palette_callback);
gboolean gimp_palettes_set_popup (const gchar *palette_callback,
const gchar *palette_name);
G_END_DECLS

View File

@ -37,7 +37,7 @@
* Returns: The found parasite.
*/
GimpParasite *
gimp_parasite_find (gchar *name)
gimp_parasite_find (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -98,7 +98,7 @@ gimp_parasite_attach (GimpParasite *parasite)
* Returns: TRUE on success.
*/
gboolean
gimp_parasite_detach (gchar *name)
gimp_parasite_detach (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -172,7 +172,7 @@ gimp_parasite_list (gint *num_parasites,
*/
GimpParasite *
gimp_drawable_parasite_find (gint32 drawable_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -239,7 +239,7 @@ gimp_drawable_parasite_attach (gint32 drawable_ID,
*/
gboolean
gimp_drawable_parasite_detach (gint32 drawable_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -317,7 +317,7 @@ gimp_drawable_parasite_list (gint32 drawable_ID,
*/
GimpParasite *
gimp_image_parasite_find (gint32 image_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -384,7 +384,7 @@ gimp_image_parasite_attach (gint32 image_ID,
*/
gboolean
gimp_image_parasite_detach (gint32 image_ID,
gchar *name)
const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,26 +29,26 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
GimpParasite* gimp_parasite_find (gchar *name);
GimpParasite* gimp_parasite_find (const gchar *name);
gboolean gimp_parasite_attach (GimpParasite *parasite);
gboolean gimp_parasite_detach (gchar *name);
gboolean gimp_parasite_detach (const gchar *name);
gboolean gimp_parasite_list (gint *num_parasites,
gchar ***parasites);
GimpParasite* gimp_drawable_parasite_find (gint32 drawable_ID,
gchar *name);
const gchar *name);
gboolean gimp_drawable_parasite_attach (gint32 drawable_ID,
GimpParasite *parasite);
gboolean gimp_drawable_parasite_detach (gint32 drawable_ID,
gchar *name);
const gchar *name);
gboolean gimp_drawable_parasite_list (gint32 drawable_ID,
gint *num_parasites,
gchar ***parasites);
GimpParasite* gimp_image_parasite_find (gint32 image_ID,
gchar *name);
const gchar *name);
gboolean gimp_image_parasite_attach (gint32 image_ID,
GimpParasite *parasite);
gboolean gimp_image_parasite_detach (gint32 image_ID,
gchar *name);
const gchar *name);
gboolean gimp_image_parasite_list (gint32 image_ID,
gint *num_parasites,
gchar ***parasites);

View File

@ -110,7 +110,7 @@ gimp_path_get_current (gint32 image_ID)
*/
gboolean
gimp_path_set_current (gint32 image_ID,
gchar *set_current_path_name)
const gchar *set_current_path_name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -142,7 +142,7 @@ gimp_path_set_current (gint32 image_ID,
*/
gboolean
gimp_path_delete (gint32 image_ID,
gchar *path_name_to_del)
const gchar *path_name_to_del)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -177,7 +177,7 @@ gimp_path_delete (gint32 image_ID,
*/
gint
gimp_path_get_points (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint *path_closed,
gint *num_path_point_details,
gdouble **points_pairs)
@ -225,10 +225,10 @@ gimp_path_get_points (gint32 image_ID,
*/
gboolean
gimp_path_set_points (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint ptype,
gint num_path_points,
gdouble *points_pairs)
const gdouble *points_pairs)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -341,7 +341,7 @@ gimp_path_get_point_at_dist (gint32 image_ID,
*/
gint
gimp_path_get_tattoo (gint32 image_ID,
gchar *pathname)
const gchar *pathname)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -379,7 +379,7 @@ gimp_path_get_tattoo (gint32 image_ID,
*/
gboolean
gimp_path_set_tattoo (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint tattovalue)
{
GimpParam *return_vals;
@ -452,7 +452,7 @@ gimp_get_path_by_tattoo (gint32 image_ID,
*/
gint
gimp_path_get_locked (gint32 image_ID,
gchar *pathname)
const gchar *pathname)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -488,7 +488,7 @@ gimp_path_get_locked (gint32 image_ID,
*/
gboolean
gimp_path_set_locked (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint lockstatus)
{
GimpParam *return_vals;

View File

@ -33,35 +33,35 @@ gchar** gimp_path_list (gint32 image_ID,
gint *num_paths);
gchar* gimp_path_get_current (gint32 image_ID);
gboolean gimp_path_set_current (gint32 image_ID,
gchar *set_current_path_name);
const gchar *set_current_path_name);
gboolean gimp_path_delete (gint32 image_ID,
gchar *path_name_to_del);
const gchar *path_name_to_del);
gint gimp_path_get_points (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint *path_closed,
gint *num_path_point_details,
gdouble **points_pairs);
gboolean gimp_path_set_points (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint ptype,
gint num_path_points,
gdouble *points_pairs);
const gdouble *points_pairs);
gboolean gimp_path_stroke_current (gint32 image_ID);
gint gimp_path_get_point_at_dist (gint32 image_ID,
gdouble distance,
gint *y_point,
gdouble *gradient);
gint gimp_path_get_tattoo (gint32 image_ID,
gchar *pathname);
const gchar *pathname);
gboolean gimp_path_set_tattoo (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint tattovalue);
gchar* gimp_get_path_by_tattoo (gint32 image_ID,
gint tattoo);
gint gimp_path_get_locked (gint32 image_ID,
gchar *pathname);
const gchar *pathname);
gboolean gimp_path_set_locked (gint32 image_ID,
gchar *pathname,
const gchar *pathname,
gint lockstatus);

View File

@ -149,7 +149,7 @@ gimp_patterns_get_pattern (gint *width,
* Returns: TRUE on success.
*/
gboolean
gimp_patterns_set_pattern (gchar *name)
gimp_patterns_set_pattern (const gchar *name)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -186,7 +186,7 @@ gimp_patterns_set_pattern (gchar *name)
* Returns: The pattern name.
*/
gchar *
gimp_patterns_get_pattern_data (gchar *name,
gimp_patterns_get_pattern_data (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,

View File

@ -33,8 +33,8 @@ gboolean gimp_patterns_refresh (void);
gchar** gimp_patterns_get_list (gint *num_patterns);
gchar* gimp_patterns_get_pattern (gint *width,
gint *height);
gboolean gimp_patterns_set_pattern (gchar *name);
gchar* gimp_patterns_get_pattern_data (gchar *name,
gboolean gimp_patterns_set_pattern (const gchar *name);
gchar* gimp_patterns_get_pattern_data (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,

View File

@ -38,9 +38,9 @@
* Returns: TRUE on success.
*/
gboolean
gimp_patterns_popup (gchar *pattern_callback,
gchar *popup_title,
gchar *initial_pattern)
gimp_patterns_popup (const gchar *pattern_callback,
const gchar *popup_title,
const gchar *initial_pattern)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -71,7 +71,7 @@ gimp_patterns_popup (gchar *pattern_callback,
* Returns: TRUE on success.
*/
gboolean
gimp_patterns_close_popup (gchar *pattern_callback)
gimp_patterns_close_popup (const gchar *pattern_callback)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -101,8 +101,8 @@ gimp_patterns_close_popup (gchar *pattern_callback)
* Returns: TRUE on success.
*/
gboolean
gimp_patterns_set_popup (gchar *pattern_callback,
gchar *pattern_name)
gimp_patterns_set_popup (const gchar *pattern_callback,
const gchar *pattern_name)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,12 +29,12 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_patterns_popup (gchar *pattern_callback,
gchar *popup_title,
gchar *initial_pattern);
gboolean gimp_patterns_close_popup (gchar *pattern_callback);
gboolean gimp_patterns_set_popup (gchar *pattern_callback,
gchar *pattern_name);
gboolean gimp_patterns_popup (const gchar *pattern_callback,
const gchar *popup_title,
const gchar *initial_pattern);
gboolean gimp_patterns_close_popup (const gchar *pattern_callback);
gboolean gimp_patterns_set_popup (const gchar *pattern_callback,
const gchar *pattern_name);
G_END_DECLS

View File

@ -38,7 +38,7 @@
* Returns: TRUE on success.
*/
gboolean
gimp_progress_init (gchar *message)
gimp_progress_init (const gchar *message)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -136,8 +136,8 @@ gimp_temp_PDB_name (void)
* Returns: TRUE on success.
*/
gboolean
gimp_plugin_domain_register (gchar *domain_name,
gchar *domain_path)
gimp_plugin_domain_register (const gchar *domain_name,
const gchar *domain_path)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -171,7 +171,7 @@ gimp_plugin_domain_register (gchar *domain_name,
* Returns: TRUE on success.
*/
gboolean
gimp_plugin_help_register (gchar *help_path)
gimp_plugin_help_register (const gchar *help_path)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,12 +29,12 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_progress_init (gchar *message);
gboolean gimp_progress_init (const gchar *message);
gboolean gimp_progress_update (gdouble percentage);
gchar* gimp_temp_PDB_name (void);
gboolean gimp_plugin_domain_register (gchar *domain_name,
gchar *domain_path);
gboolean gimp_plugin_help_register (gchar *help_path);
gboolean gimp_plugin_domain_register (const gchar *domain_name,
const gchar *domain_path);
gboolean gimp_plugin_help_register (const gchar *help_path);
G_END_DECLS

View File

@ -42,7 +42,7 @@
* Returns: TRUE on success.
*/
gboolean
gimp_procedural_db_dump (gchar *filename)
gimp_procedural_db_dump (const gchar *filename)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -91,13 +91,13 @@ gimp_procedural_db_dump (gchar *filename)
* Returns: TRUE on success.
*/
gboolean
gimp_procedural_db_query (gchar *name,
gchar *blurb,
gchar *help,
gchar *author,
gchar *copyright,
gchar *date,
gchar *proc_type,
gimp_procedural_db_query (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *proc_type,
gint *num_matches,
gchar ***procedure_names)
{
@ -160,7 +160,7 @@ gimp_procedural_db_query (gchar *name,
* Returns: TRUE on success.
*/
gboolean
_gimp_procedural_db_proc_info (gchar *procedure,
_gimp_procedural_db_proc_info (const gchar *procedure,
gchar **blurb,
gchar **help,
gchar **author,
@ -224,7 +224,7 @@ _gimp_procedural_db_proc_info (gchar *procedure,
* Returns: TRUE on success.
*/
gboolean
gimp_procedural_db_proc_arg (gchar *procedure,
gimp_procedural_db_proc_arg (const gchar *procedure,
gint arg_num,
GimpPDBArgType *arg_type,
gchar **arg_name,
@ -276,7 +276,7 @@ gimp_procedural_db_proc_arg (gchar *procedure,
* Returns: TRUE on success.
*/
gboolean
gimp_procedural_db_proc_val (gchar *procedure,
gimp_procedural_db_proc_val (const gchar *procedure,
gint val_num,
GimpPDBArgType *val_type,
gchar **val_name,
@ -326,7 +326,7 @@ gimp_procedural_db_proc_val (gchar *procedure,
* Returns: TRUE on success.
*/
gboolean
_gimp_procedural_db_get_data (gchar *identifier,
_gimp_procedural_db_get_data (const gchar *identifier,
gint *bytes,
guint8 **data)
{
@ -370,7 +370,7 @@ _gimp_procedural_db_get_data (gchar *identifier,
* Returns: The number of bytes in the data.
*/
gint
gimp_procedural_db_get_data_size (gchar *identifier)
gimp_procedural_db_get_data_size (const gchar *identifier)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -404,9 +404,9 @@ gimp_procedural_db_get_data_size (gchar *identifier)
* Returns: TRUE on success.
*/
gboolean
_gimp_procedural_db_set_data (gchar *identifier,
_gimp_procedural_db_set_data (const gchar *identifier,
gint bytes,
guint8 *data)
const guint8 *data)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -29,17 +29,17 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean gimp_procedural_db_dump (gchar *filename);
gboolean gimp_procedural_db_query (gchar *name,
gchar *blurb,
gchar *help,
gchar *author,
gchar *copyright,
gchar *date,
gchar *proc_type,
gboolean gimp_procedural_db_dump (const gchar *filename);
gboolean gimp_procedural_db_query (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *proc_type,
gint *num_matches,
gchar ***procedure_names);
gboolean _gimp_procedural_db_proc_info (gchar *procedure,
gboolean _gimp_procedural_db_proc_info (const gchar *procedure,
gchar **blurb,
gchar **help,
gchar **author,
@ -48,23 +48,23 @@ gboolean _gimp_procedural_db_proc_info (gchar *procedure,
GimpPDBProcType *proc_type,
gint *num_args,
gint *num_values);
gboolean gimp_procedural_db_proc_arg (gchar *procedure,
gboolean gimp_procedural_db_proc_arg (const gchar *procedure,
gint arg_num,
GimpPDBArgType *arg_type,
gchar **arg_name,
gchar **arg_desc);
gboolean gimp_procedural_db_proc_val (gchar *procedure,
gboolean gimp_procedural_db_proc_val (const gchar *procedure,
gint val_num,
GimpPDBArgType *val_type,
gchar **val_name,
gchar **val_desc);
gboolean _gimp_procedural_db_get_data (gchar *identifier,
gboolean _gimp_procedural_db_get_data (const gchar *identifier,
gint *bytes,
guint8 **data);
gint gimp_procedural_db_get_data_size (gchar *identifier);
gboolean _gimp_procedural_db_set_data (gchar *identifier,
gint gimp_procedural_db_get_data_size (const gchar *identifier);
gboolean _gimp_procedural_db_set_data (const gchar *identifier,
gint bytes,
guint8 *data);
const guint8 *data);
G_END_DECLS

View File

@ -57,7 +57,7 @@
*/
gboolean
gimp_by_color_select (gint32 drawable_ID,
GimpRGB *color,
const GimpRGB *color,
gint threshold,
GimpChannelOps operation,
gboolean antialias,
@ -178,7 +178,7 @@ gimp_ellipse_select (gint32 image_ID,
gboolean
gimp_free_select (gint32 image_ID,
gint num_segs,
gdouble *segs,
const gdouble *segs,
GimpChannelOps operation,
gboolean antialias,
gboolean feather,

View File

@ -30,7 +30,7 @@ G_BEGIN_DECLS
gboolean gimp_by_color_select (gint32 drawable_ID,
GimpRGB *color,
const GimpRGB *color,
gint threshold,
GimpChannelOps operation,
gboolean antialias,
@ -48,7 +48,7 @@ gboolean gimp_ellipse_select (gint32 image_ID,
gdouble feather_radius);
gboolean gimp_free_select (gint32 image_ID,
gint num_segs,
gdouble *segs,
const gdouble *segs,
GimpChannelOps operation,
gboolean antialias,
gboolean feather,

View File

@ -59,12 +59,12 @@ gimp_text_fontname (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gchar *text,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
GimpSizeType size_type,
gchar *fontname)
const gchar *fontname)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -112,10 +112,10 @@ gimp_text_fontname (gint32 image_ID,
* Returns: TRUE on success.
*/
gboolean
gimp_text_get_extents_fontname (gchar *text,
gimp_text_get_extents_fontname (const gchar *text,
gdouble size,
GimpSizeType size_type,
gchar *fontname,
const gchar *fontname,
gint *width,
gint *height,
gint *ascent,
@ -201,19 +201,19 @@ gimp_text (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gchar *text,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
GimpSizeType size_type,
gchar *foundry,
gchar *family,
gchar *weight,
gchar *slant,
gchar *set_width,
gchar *spacing,
gchar *registry,
gchar *encoding)
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding)
{
GimpParam *return_vals;
gint nreturn_vals;
@ -275,17 +275,17 @@ gimp_text (gint32 image_ID,
* Returns: TRUE on success.
*/
gboolean
gimp_text_get_extents (gchar *text,
gimp_text_get_extents (const gchar *text,
gdouble size,
GimpSizeType size_type,
gchar *foundry,
gchar *family,
gchar *weight,
gchar *slant,
gchar *set_width,
gchar *spacing,
gchar *registry,
gchar *encoding,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding,
gint *width,
gint *height,
gint *ascent,

View File

@ -33,16 +33,16 @@ gint32 gimp_text_fontname (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gchar *text,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
GimpSizeType size_type,
gchar *fontname);
gboolean gimp_text_get_extents_fontname (gchar *text,
const gchar *fontname);
gboolean gimp_text_get_extents_fontname (const gchar *text,
gdouble size,
GimpSizeType size_type,
gchar *fontname,
const gchar *fontname,
gint *width,
gint *height,
gint *ascent,
@ -51,30 +51,30 @@ gint32 gimp_text (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gchar *text,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
GimpSizeType size_type,
gchar *foundry,
gchar *family,
gchar *weight,
gchar *slant,
gchar *set_width,
gchar *spacing,
gchar *registry,
gchar *encoding);
gboolean gimp_text_get_extents (gchar *text,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding);
gboolean gimp_text_get_extents (const gchar *text,
gdouble size,
GimpSizeType size_type,
gchar *foundry,
gchar *family,
gchar *weight,
gchar *slant,
gchar *set_width,
gchar *spacing,
gchar *registry,
gchar *encoding,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding,
gint *width,
gint *height,
gint *ascent,

View File

@ -102,13 +102,13 @@ _gimp_unit_get_number_of_built_in_units (void)
* Returns: The new unit's ID.
*/
GimpUnit
_gimp_unit_new (gchar *identifier,
_gimp_unit_new (const gchar *identifier,
gdouble factor,
gint digits,
gchar *symbol,
gchar *abbreviation,
gchar *singular,
gchar *plural)
const gchar *symbol,
const gchar *abbreviation,
const gchar *singular,
const gchar *plural)
{
GimpParam *return_vals;
gint nreturn_vals;

View File

@ -31,13 +31,13 @@ G_BEGIN_DECLS
gint _gimp_unit_get_number_of_units (void);
gint _gimp_unit_get_number_of_built_in_units (void);
GimpUnit _gimp_unit_new (gchar *identifier,
GimpUnit _gimp_unit_new (const gchar *identifier,
gdouble factor,
gint digits,
gchar *symbol,
gchar *abbreviation,
gchar *singular,
gchar *plural);
const gchar *symbol,
const gchar *abbreviation,
const gchar *singular,
const gchar *plural);
gboolean _gimp_unit_get_deletion_flag (GimpUnit unit_id);
gboolean _gimp_unit_set_deletion_flag (GimpUnit unit_id,
gboolean deletion_flag);

View File

@ -131,6 +131,11 @@ sub generate {
$privatevars++;
}
else {
if ($type eq 'string' ||
$type eq 'color' ||
$type =~ /array$/) {
$arglist .= 'const '
}
$arglist .= &libtype($_);
$arglist .= $_->{name};
$arglist .= '_ID' if $id;
@ -394,7 +399,7 @@ CODE
my @arglist = split(/, /, $arglist);
my $longest = 0; my $seen = 0;
foreach (@arglist) {
/(\w+) \S+/;
/(const \w+) \S+/ || /(\w+) \S+/;
my $len = length($1);
my $num = scalar @{[ /\*/g ]};
$seen = $num if $seen < $num;
@ -405,9 +410,10 @@ CODE
my $once = 0; $arglist = "";
foreach (@arglist) {
my $len = $longest - index($_, ' ') + 1;
my $space = rindex($_, ' ');
my $len = $longest - $space + 1;
$len -= scalar @{[ /\*/g ]};
s/ /' ' x $len/e if $len > 1;
substr($_, $space, 1) = ' ' x $len if $space != -1 && $len > 1;
$arglist .= "\t" if $once;
$arglist .= $_;
$arglist .= ",\n";
@ -533,7 +539,7 @@ LGPL
}
foreach (split(/,/, $arglist->[2])) {
next if !/(\w+) \S+/;
next unless /(const \w+) \S+/ || /(\w+) \S+/;
$len = length($1) + 1;
my $num = scalar @{[ /\*/g ]};
$seen = $num if $seen < $num;
@ -551,10 +557,11 @@ LGPL
my @args = split(/,/, $arglist); $arglist = "";
foreach (@args) {
my $len = $longest[2] - index($_, ' ') + 1;
$space = rindex($_, ' ');
my $len = $longest[2] - $space + 1;
$len -= scalar @{[ /\*/g ]};
$len++ if /\t/;
s/ /' ' x $len/e if $len > 1;
substr($_, $space, 1) = ' ' x $len if $space != -1 && $len > 1;
$arglist .= $_;
$arglist .= "," if !/;\n$/;
}