mirror of https://github.com/GNOME/gimp.git
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:
parent
1016c682c8
commit
d46b87b1e4
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -47,12 +47,12 @@
|
|||
* Returns: The newly created channel.
|
||||
*/
|
||||
gint32
|
||||
_gimp_channel_new (gint32 image_ID,
|
||||
gint width,
|
||||
gint height,
|
||||
gchar *name,
|
||||
gdouble opacity,
|
||||
GimpRGB *color)
|
||||
_gimp_channel_new (gint32 image_ID,
|
||||
gint width,
|
||||
gint height,
|
||||
const gchar *name,
|
||||
gdouble opacity,
|
||||
const GimpRGB *color)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -223,8 +223,8 @@ gimp_channel_get_name (gint32 channel_ID)
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_channel_set_name (gint32 channel_ID,
|
||||
gchar *name)
|
||||
gimp_channel_set_name (gint32 channel_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -480,8 +480,8 @@ gimp_channel_get_color (gint32 channel_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_channel_set_color (gint32 channel_ID,
|
||||
GimpRGB *color)
|
||||
gimp_channel_set_color (gint32 channel_ID,
|
||||
const GimpRGB *color)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,12 +29,12 @@ 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);
|
||||
gboolean gimp_get_monitor_resolution (gdouble *xres,
|
||||
gdouble *yres);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -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;
|
||||
|
@ -216,8 +216,8 @@ gimp_gradients_sample_uniform (gint num_samples)
|
|||
* Returns: Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.
|
||||
*/
|
||||
gdouble *
|
||||
gimp_gradients_sample_custom (gint num_samples,
|
||||
gdouble *positions)
|
||||
gimp_gradients_sample_custom (gint num_samples,
|
||||
const gdouble *positions)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -258,10 +258,10 @@ gimp_gradients_sample_custom (gint num_samples,
|
|||
* Returns: The gradient name.
|
||||
*/
|
||||
gchar *
|
||||
gimp_gradients_get_gradient_data (gchar *name,
|
||||
gint sample_size,
|
||||
gint *width,
|
||||
gdouble **grad_data)
|
||||
gimp_gradients_get_gradient_data (const gchar *name,
|
||||
gint sample_size,
|
||||
gint *width,
|
||||
gdouble **grad_data)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -30,16 +30,16 @@ G_BEGIN_DECLS
|
|||
|
||||
|
||||
gboolean gimp_gradients_refresh (void);
|
||||
gchar** gimp_gradients_get_list (gint *num_gradients);
|
||||
gchar** gimp_gradients_get_list (gint *num_gradients);
|
||||
gchar* gimp_gradients_get_gradient (void);
|
||||
gboolean gimp_gradients_set_gradient (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,
|
||||
gint sample_size,
|
||||
gint *width,
|
||||
gdouble **grad_data);
|
||||
gboolean gimp_gradients_set_gradient (const gchar *name);
|
||||
gdouble* gimp_gradients_sample_uniform (gint num_samples);
|
||||
gdouble* gimp_gradients_sample_custom (gint num_samples,
|
||||
const gdouble *positions);
|
||||
gchar* gimp_gradients_get_gradient_data (const gchar *name,
|
||||
gint sample_size,
|
||||
gint *width,
|
||||
gdouble **grad_data);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -39,10 +39,10 @@
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_gradients_popup (gchar *gradient_callback,
|
||||
gchar *popup_title,
|
||||
gchar *initial_gradient,
|
||||
gint sample_size)
|
||||
gimp_gradients_popup (const gchar *gradient_callback,
|
||||
const gchar *popup_title,
|
||||
const gchar *initial_gradient,
|
||||
gint sample_size)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_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;
|
||||
|
|
|
@ -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,
|
||||
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_popup (const gchar *gradient_callback,
|
||||
const gchar *popup_title,
|
||||
const gchar *initial_gradient,
|
||||
gint sample_size);
|
||||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1156,9 +1156,9 @@ _gimp_image_get_cmap (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
_gimp_image_set_cmap (gint32 image_ID,
|
||||
gint num_bytes,
|
||||
guint8 *cmap)
|
||||
_gimp_image_set_cmap (gint32 image_ID,
|
||||
gint num_bytes,
|
||||
const guint8 *cmap)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -2073,8 +2073,8 @@ gimp_image_get_filename (gint32 image_ID)
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_set_filename (gint32 image_ID,
|
||||
gchar *filename)
|
||||
gimp_image_set_filename (gint32 image_ID,
|
||||
const gchar *filename)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
@ -530,8 +530,8 @@ gimp_layer_get_name (gint32 layer_ID)
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_layer_set_name (gint32 layer_ID,
|
||||
gchar *name)
|
||||
gimp_layer_set_name (gint32 layer_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_message (gchar *message)
|
||||
gimp_message (const gchar *message)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -43,10 +43,10 @@
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_airbrush (gint32 drawable_ID,
|
||||
gdouble pressure,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_airbrush (gint32 drawable_ID,
|
||||
gdouble pressure,
|
||||
gint num_strokes,
|
||||
const gdouble *strokes)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -84,9 +84,9 @@ gimp_airbrush (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_airbrush_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_airbrush_default (gint32 drawable_ID,
|
||||
gint num_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;
|
||||
|
@ -182,9 +182,9 @@ gimp_clone (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_clone_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_clone_default (gint32 drawable_ID,
|
||||
gint num_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;
|
||||
|
@ -265,9 +265,9 @@ gimp_convolve (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_convolve_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_convolve_default (gint32 drawable_ID,
|
||||
gint num_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;
|
||||
|
@ -347,9 +347,9 @@ gimp_dodgeburn (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_dodgeburn_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_dodgeburn_default (gint32 drawable_ID,
|
||||
gint num_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)
|
||||
{
|
||||
|
@ -431,9 +431,9 @@ gimp_eraser (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_eraser_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_eraser_default (gint32 drawable_ID,
|
||||
gint num_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)
|
||||
{
|
||||
|
@ -533,9 +533,9 @@ gimp_paintbrush (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_paintbrush_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_paintbrush_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
const gdouble *strokes)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -573,9 +573,9 @@ gimp_paintbrush_default (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_pencil (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_pencil (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
const gdouble *strokes)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -611,10 +611,10 @@ gimp_pencil (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_smudge (gint32 drawable_ID,
|
||||
gdouble pressure,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_smudge (gint32 drawable_ID,
|
||||
gdouble pressure,
|
||||
gint num_strokes,
|
||||
const gdouble *strokes)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -651,9 +651,9 @@ gimp_smudge (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_smudge_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
gdouble *strokes)
|
||||
gimp_smudge_default (gint32 drawable_ID,
|
||||
gint num_strokes,
|
||||
const gdouble *strokes)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,10 +29,10 @@ G_BEGIN_DECLS
|
|||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
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_get_foreground (GimpRGB *foreground);
|
||||
gboolean gimp_palette_get_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);
|
||||
|
||||
|
|
|
@ -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,10 +175,10 @@ gimp_palettes_set_palette (gchar *name)
|
|||
* Returns: The palette name.
|
||||
*/
|
||||
gchar *
|
||||
gimp_palettes_get_palette_entry (gchar *name,
|
||||
gint entry_num,
|
||||
gint *num_colors,
|
||||
GimpRGB *color)
|
||||
gimp_palettes_get_palette_entry (const gchar *name,
|
||||
gint entry_num,
|
||||
gint *num_colors,
|
||||
GimpRGB *color)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -30,13 +30,13 @@ 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,
|
||||
gint entry_num,
|
||||
gint *num_colors,
|
||||
GimpRGB *color);
|
||||
gchar** gimp_palettes_get_list (gint *num_palettes);
|
||||
gchar* gimp_palettes_get_palette (gint *num_colors);
|
||||
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);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
@ -171,8 +171,8 @@ gimp_parasite_list (gint *num_parasites,
|
|||
* Returns: The found parasite.
|
||||
*/
|
||||
GimpParasite *
|
||||
gimp_drawable_parasite_find (gint32 drawable_ID,
|
||||
gchar *name)
|
||||
gimp_drawable_parasite_find (gint32 drawable_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -238,8 +238,8 @@ gimp_drawable_parasite_attach (gint32 drawable_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_parasite_detach (gint32 drawable_ID,
|
||||
gchar *name)
|
||||
gimp_drawable_parasite_detach (gint32 drawable_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -316,8 +316,8 @@ gimp_drawable_parasite_list (gint32 drawable_ID,
|
|||
* Returns: The found parasite.
|
||||
*/
|
||||
GimpParasite *
|
||||
gimp_image_parasite_find (gint32 image_ID,
|
||||
gchar *name)
|
||||
gimp_image_parasite_find (gint32 image_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -383,8 +383,8 @@ gimp_image_parasite_attach (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_parasite_detach (gint32 image_ID,
|
||||
gchar *name)
|
||||
gimp_image_parasite_detach (gint32 image_ID,
|
||||
const gchar *name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -109,8 +109,8 @@ gimp_path_get_current (gint32 image_ID)
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_path_set_current (gint32 image_ID,
|
||||
gchar *set_current_path_name)
|
||||
gimp_path_set_current (gint32 image_ID,
|
||||
const gchar *set_current_path_name)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -141,8 +141,8 @@ gimp_path_set_current (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_path_delete (gint32 image_ID,
|
||||
gchar *path_name_to_del)
|
||||
gimp_path_delete (gint32 image_ID,
|
||||
const gchar *path_name_to_del)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -176,11 +176,11 @@ gimp_path_delete (gint32 image_ID,
|
|||
* Returns: The type of the path. Currently only one type (1 = Bezier) is supported.
|
||||
*/
|
||||
gint
|
||||
gimp_path_get_points (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint *path_closed,
|
||||
gint *num_path_point_details,
|
||||
gdouble **points_pairs)
|
||||
gimp_path_get_points (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint *path_closed,
|
||||
gint *num_path_point_details,
|
||||
gdouble **points_pairs)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -224,11 +224,11 @@ gimp_path_get_points (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_path_set_points (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint ptype,
|
||||
gint num_path_points,
|
||||
gdouble *points_pairs)
|
||||
gimp_path_set_points (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint ptype,
|
||||
gint num_path_points,
|
||||
const gdouble *points_pairs)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -340,8 +340,8 @@ gimp_path_get_point_at_dist (gint32 image_ID,
|
|||
* Returns: The tattoo associated with the name path.
|
||||
*/
|
||||
gint
|
||||
gimp_path_get_tattoo (gint32 image_ID,
|
||||
gchar *pathname)
|
||||
gimp_path_get_tattoo (gint32 image_ID,
|
||||
const gchar *pathname)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -378,9 +378,9 @@ gimp_path_get_tattoo (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_path_set_tattoo (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint tattovalue)
|
||||
gimp_path_set_tattoo (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint tattovalue)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -451,8 +451,8 @@ gimp_get_path_by_tattoo (gint32 image_ID,
|
|||
* Returns: The lock status associated with the name path. 0 returned if the path is not locked. 1 is returned if the path is locked.
|
||||
*/
|
||||
gint
|
||||
gimp_path_get_locked (gint32 image_ID,
|
||||
gchar *pathname)
|
||||
gimp_path_get_locked (gint32 image_ID,
|
||||
const gchar *pathname)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -487,9 +487,9 @@ gimp_path_get_locked (gint32 image_ID,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_path_set_locked (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint lockstatus)
|
||||
gimp_path_set_locked (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint lockstatus)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -29,40 +29,40 @@ G_BEGIN_DECLS
|
|||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
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);
|
||||
gboolean gimp_path_delete (gint32 image_ID,
|
||||
gchar *path_name_to_del);
|
||||
gint gimp_path_get_points (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint *path_closed,
|
||||
gint *num_path_point_details,
|
||||
gdouble **points_pairs);
|
||||
gboolean gimp_path_set_points (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint ptype,
|
||||
gint num_path_points,
|
||||
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);
|
||||
gboolean gimp_path_set_tattoo (gint32 image_ID,
|
||||
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);
|
||||
gboolean gimp_path_set_locked (gint32 image_ID,
|
||||
gchar *pathname,
|
||||
gint lockstatus);
|
||||
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,
|
||||
const gchar *set_current_path_name);
|
||||
gboolean gimp_path_delete (gint32 image_ID,
|
||||
const gchar *path_name_to_del);
|
||||
gint gimp_path_get_points (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint *path_closed,
|
||||
gint *num_path_point_details,
|
||||
gdouble **points_pairs);
|
||||
gboolean gimp_path_set_points (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint ptype,
|
||||
gint num_path_points,
|
||||
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,
|
||||
const gchar *pathname);
|
||||
gboolean gimp_path_set_tattoo (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint tattovalue);
|
||||
gchar* gimp_get_path_by_tattoo (gint32 image_ID,
|
||||
gint tattoo);
|
||||
gint gimp_path_get_locked (gint32 image_ID,
|
||||
const gchar *pathname);
|
||||
gboolean gimp_path_set_locked (gint32 image_ID,
|
||||
const gchar *pathname,
|
||||
gint lockstatus);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -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,12 +186,12 @@ gimp_patterns_set_pattern (gchar *name)
|
|||
* Returns: The pattern name.
|
||||
*/
|
||||
gchar *
|
||||
gimp_patterns_get_pattern_data (gchar *name,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *mask_bpp,
|
||||
gint *length,
|
||||
guint8 **mask_data)
|
||||
gimp_patterns_get_pattern_data (const gchar *name,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *mask_bpp,
|
||||
gint *length,
|
||||
guint8 **mask_data)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -30,16 +30,16 @@ G_BEGIN_DECLS
|
|||
|
||||
|
||||
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,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *mask_bpp,
|
||||
gint *length,
|
||||
guint8 **mask_data);
|
||||
gchar** gimp_patterns_get_list (gint *num_patterns);
|
||||
gchar* gimp_patterns_get_pattern (gint *width,
|
||||
gint *height);
|
||||
gboolean gimp_patterns_set_pattern (const gchar *name);
|
||||
gchar* gimp_patterns_get_pattern_data (const gchar *name,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *mask_bpp,
|
||||
gint *length,
|
||||
guint8 **mask_data);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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_update (gdouble percentage);
|
||||
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
|
||||
|
|
|
@ -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,15 +91,15 @@ 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,
|
||||
gint *num_matches,
|
||||
gchar ***procedure_names)
|
||||
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)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -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,9 +326,9 @@ gimp_procedural_db_proc_val (gchar *procedure,
|
|||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
_gimp_procedural_db_get_data (gchar *identifier,
|
||||
gint *bytes,
|
||||
guint8 **data)
|
||||
_gimp_procedural_db_get_data (const gchar *identifier,
|
||||
gint *bytes,
|
||||
guint8 **data)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
@ -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,
|
||||
gint bytes,
|
||||
guint8 *data)
|
||||
_gimp_procedural_db_set_data (const gchar *identifier,
|
||||
gint bytes,
|
||||
const guint8 *data)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
gdouble factor,
|
||||
gint digits,
|
||||
gchar *symbol,
|
||||
gchar *abbreviation,
|
||||
gchar *singular,
|
||||
gchar *plural)
|
||||
_gimp_unit_new (const gchar *identifier,
|
||||
gdouble factor,
|
||||
gint digits,
|
||||
const gchar *symbol,
|
||||
const gchar *abbreviation,
|
||||
const gchar *singular,
|
||||
const gchar *plural)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
|
|
@ -31,23 +31,23 @@ 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,
|
||||
gdouble factor,
|
||||
gint digits,
|
||||
gchar *symbol,
|
||||
gchar *abbreviation,
|
||||
gchar *singular,
|
||||
gchar *plural);
|
||||
gboolean _gimp_unit_get_deletion_flag (GimpUnit unit_id);
|
||||
gboolean _gimp_unit_set_deletion_flag (GimpUnit unit_id,
|
||||
gboolean deletion_flag);
|
||||
gchar* _gimp_unit_get_identifier (GimpUnit unit_id);
|
||||
gdouble _gimp_unit_get_factor (GimpUnit unit_id);
|
||||
gint _gimp_unit_get_digits (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_symbol (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_abbreviation (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_singular (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_plural (GimpUnit unit_id);
|
||||
GimpUnit _gimp_unit_new (const gchar *identifier,
|
||||
gdouble factor,
|
||||
gint digits,
|
||||
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);
|
||||
gchar* _gimp_unit_get_identifier (GimpUnit unit_id);
|
||||
gdouble _gimp_unit_get_factor (GimpUnit unit_id);
|
||||
gint _gimp_unit_get_digits (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_symbol (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_abbreviation (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_singular (GimpUnit unit_id);
|
||||
gchar* _gimp_unit_get_plural (GimpUnit unit_id);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -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$/;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue