libgimp: make pdbgen generate GIMP_DEPRECATED stuff

instead of GIMP_DISABLE_DEPRECATED.
This commit is contained in:
Michael Natterer 2012-05-03 01:12:25 +02:00
parent 0d481702c7
commit 86f53a3ceb
35 changed files with 85 additions and 114 deletions

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_BRUSHES_PDB_H__
#include "gimpbrushes_pdb.h"
/** /**

View File

@ -35,12 +35,15 @@ G_BEGIN_DECLS
gboolean gimp_brushes_refresh (void); gboolean gimp_brushes_refresh (void);
gchar** gimp_brushes_get_list (const gchar *filter, gchar** gimp_brushes_get_list (const gchar *filter,
gint *num_brushes); gint *num_brushes);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_context_get_brush)
gchar* gimp_brushes_get_brush (gint *width, gchar* gimp_brushes_get_brush (gint *width,
gint *height, gint *height,
gint *spacing); gint *spacing);
GIMP_DEPRECATED_FOR(gimp_brush_get_spacing)
gint gimp_brushes_get_spacing (void); gint gimp_brushes_get_spacing (void);
GIMP_DEPRECATED_FOR(gimp_brush_set_spacing)
gboolean gimp_brushes_set_spacing (gint spacing); gboolean gimp_brushes_set_spacing (gint spacing);
GIMP_DEPRECATED_FOR(gimp_brush_get_pixels)
gchar* gimp_brushes_get_brush_data (const gchar *name, gchar* gimp_brushes_get_brush_data (const gchar *name,
gdouble *opacity, gdouble *opacity,
gint *spacing, gint *spacing,
@ -49,7 +52,6 @@ gchar* gimp_brushes_get_brush_data (const gchar *name,
gint *height, gint *height,
gint *length, gint *length,
guint8 **mask_data); guint8 **mask_data);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_COLOR_PDB_H__
#include "gimpcolor_pdb.h"
/** /**

View File

@ -42,9 +42,8 @@ gboolean gimp_levels (gint32 drawable_ID,
gdouble gamma, gdouble gamma,
gint low_output, gint low_output,
gint high_output); gint high_output);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_levels_stretch)
gboolean gimp_levels_auto (gint32 drawable_ID); gboolean gimp_levels_auto (gint32 drawable_ID);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_levels_stretch (gint32 drawable_ID); gboolean gimp_levels_stretch (gint32 drawable_ID);
gboolean gimp_posterize (gint32 drawable_ID, gboolean gimp_posterize (gint32 drawable_ID,
gint levels); gint levels);

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_DRAWABLE_PDB_H__
#include "gimpdrawable_pdb.h"
/** /**

View File

@ -45,10 +45,9 @@ gint gimp_drawable_height (gint32
gboolean gimp_drawable_offsets (gint32 drawable_ID, gboolean gimp_drawable_offsets (gint32 drawable_ID,
gint *offset_x, gint *offset_x,
gint *offset_y); gint *offset_y);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED
gboolean gimp_drawable_set_image (gint32 drawable_ID, gboolean gimp_drawable_set_image (gint32 drawable_ID,
gint32 image_ID); gint32 image_ID);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_drawable_mask_bounds (gint32 drawable_ID, gboolean gimp_drawable_mask_bounds (gint32 drawable_ID,
gint *x1, gint *x1,
gint *y1, gint *y1,

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_DRAWABLE_TRANSFORM_PDB_H__
#include "gimpdrawabletransform_pdb.h"
/** /**

View File

@ -32,12 +32,13 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */ /* For information look into the C source or the html documentation */
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_item_transform_flip_simple)
gint32 gimp_drawable_transform_flip_simple (gint32 drawable_ID, gint32 gimp_drawable_transform_flip_simple (gint32 drawable_ID,
GimpOrientationType flip_type, GimpOrientationType flip_type,
gboolean auto_center, gboolean auto_center,
gdouble axis, gdouble axis,
gboolean clip_result); gboolean clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_flip)
gint32 gimp_drawable_transform_flip (gint32 drawable_ID, gint32 gimp_drawable_transform_flip (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -48,6 +49,7 @@ gint32 gimp_drawable_transform_flip (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
gboolean clip_result); gboolean clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_flip)
gint32 gimp_drawable_transform_flip_default (gint32 drawable_ID, gint32 gimp_drawable_transform_flip_default (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -55,6 +57,7 @@ gint32 gimp_drawable_transform_flip_default (gint32 drawa
gdouble y1, gdouble y1,
gboolean interpolate, gboolean interpolate,
gboolean clip_result); gboolean clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_perspective)
gint32 gimp_drawable_transform_perspective (gint32 drawable_ID, gint32 gimp_drawable_transform_perspective (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -69,6 +72,7 @@ gint32 gimp_drawable_transform_perspective (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_perspective)
gint32 gimp_drawable_transform_perspective_default (gint32 drawable_ID, gint32 gimp_drawable_transform_perspective_default (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -80,12 +84,14 @@ gint32 gimp_drawable_transform_perspective_default (gint32 drawa
gdouble y3, gdouble y3,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_rotate_simple)
gint32 gimp_drawable_transform_rotate_simple (gint32 drawable_ID, gint32 gimp_drawable_transform_rotate_simple (gint32 drawable_ID,
GimpRotationType rotate_type, GimpRotationType rotate_type,
gboolean auto_center, gboolean auto_center,
gint center_x, gint center_x,
gint center_y, gint center_y,
gboolean clip_result); gboolean clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_rotate)
gint32 gimp_drawable_transform_rotate (gint32 drawable_ID, gint32 gimp_drawable_transform_rotate (gint32 drawable_ID,
gdouble angle, gdouble angle,
gboolean auto_center, gboolean auto_center,
@ -96,6 +102,7 @@ gint32 gimp_drawable_transform_rotate (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_rotate)
gint32 gimp_drawable_transform_rotate_default (gint32 drawable_ID, gint32 gimp_drawable_transform_rotate_default (gint32 drawable_ID,
gdouble angle, gdouble angle,
gboolean auto_center, gboolean auto_center,
@ -103,6 +110,7 @@ gint32 gimp_drawable_transform_rotate_default (gint32 drawa
gint center_y, gint center_y,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_scale)
gint32 gimp_drawable_transform_scale (gint32 drawable_ID, gint32 gimp_drawable_transform_scale (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -113,6 +121,7 @@ gint32 gimp_drawable_transform_scale (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_scale)
gint32 gimp_drawable_transform_scale_default (gint32 drawable_ID, gint32 gimp_drawable_transform_scale_default (gint32 drawable_ID,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
@ -120,6 +129,7 @@ gint32 gimp_drawable_transform_scale_default (gint32 drawa
gdouble y1, gdouble y1,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_shear)
gint32 gimp_drawable_transform_shear (gint32 drawable_ID, gint32 gimp_drawable_transform_shear (gint32 drawable_ID,
GimpOrientationType shear_type, GimpOrientationType shear_type,
gdouble magnitude, gdouble magnitude,
@ -128,11 +138,13 @@ gint32 gimp_drawable_transform_shear (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_shear)
gint32 gimp_drawable_transform_shear_default (gint32 drawable_ID, gint32 gimp_drawable_transform_shear_default (gint32 drawable_ID,
GimpOrientationType shear_type, GimpOrientationType shear_type,
gdouble magnitude, gdouble magnitude,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_2d)
gint32 gimp_drawable_transform_2d (gint32 drawable_ID, gint32 gimp_drawable_transform_2d (gint32 drawable_ID,
gdouble source_x, gdouble source_x,
gdouble source_y, gdouble source_y,
@ -146,6 +158,7 @@ gint32 gimp_drawable_transform_2d (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_2d)
gint32 gimp_drawable_transform_2d_default (gint32 drawable_ID, gint32 gimp_drawable_transform_2d_default (gint32 drawable_ID,
gdouble source_x, gdouble source_x,
gdouble source_y, gdouble source_y,
@ -156,6 +169,7 @@ gint32 gimp_drawable_transform_2d_default (gint32 drawa
gdouble dest_y, gdouble dest_y,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_matrix)
gint32 gimp_drawable_transform_matrix (gint32 drawable_ID, gint32 gimp_drawable_transform_matrix (gint32 drawable_ID,
gdouble coeff_0_0, gdouble coeff_0_0,
gdouble coeff_0_1, gdouble coeff_0_1,
@ -171,6 +185,7 @@ gint32 gimp_drawable_transform_matrix (gint32 drawa
gboolean supersample, gboolean supersample,
gint recursion_level, gint recursion_level,
GimpTransformResize clip_result); GimpTransformResize clip_result);
GIMP_DEPRECATED_FOR(gimp_item_transform_matrix)
gint32 gimp_drawable_transform_matrix_default (gint32 drawable_ID, gint32 gimp_drawable_transform_matrix_default (gint32 drawable_ID,
gdouble coeff_0_0, gdouble coeff_0_0,
gdouble coeff_0_1, gdouble coeff_0_1,
@ -183,7 +198,6 @@ gint32 gimp_drawable_transform_matrix_default (gint32 drawa
gdouble coeff_2_2, gdouble coeff_2_2,
gboolean interpolate, gboolean interpolate,
GimpTransformResize clip_result); GimpTransformResize clip_result);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_FLOATING_SEL_PDB_H__
#include "gimpfloatingsel_pdb.h"
/** /**

View File

@ -37,12 +37,12 @@ gboolean gimp_floating_sel_anchor (gint32 floating_sel_ID);
gboolean gimp_floating_sel_to_layer (gint32 floating_sel_ID); gboolean gimp_floating_sel_to_layer (gint32 floating_sel_ID);
gboolean gimp_floating_sel_attach (gint32 layer_ID, gboolean gimp_floating_sel_attach (gint32 layer_ID,
gint32 drawable_ID); gint32 drawable_ID);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED
gboolean gimp_floating_sel_rigor (gint32 floating_sel_ID, gboolean gimp_floating_sel_rigor (gint32 floating_sel_ID,
gboolean undo); gboolean undo);
GIMP_DEPRECATED
gboolean gimp_floating_sel_relax (gint32 floating_sel_ID, gboolean gimp_floating_sel_relax (gint32 floating_sel_ID,
gboolean undo); gboolean undo);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_GRADIENTS_PDB_H__
#include "gimpgradients_pdb.h"
/** /**

View File

@ -35,18 +35,19 @@ G_BEGIN_DECLS
gboolean gimp_gradients_refresh (void); gboolean gimp_gradients_refresh (void);
gchar** gimp_gradients_get_list (const gchar *filter, gchar** gimp_gradients_get_list (const gchar *filter,
gint *num_gradients); gint *num_gradients);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_gradient_get_uniform_samples)
gdouble* gimp_gradients_sample_uniform (gint num_samples, gdouble* gimp_gradients_sample_uniform (gint num_samples,
gboolean reverse); gboolean reverse);
GIMP_DEPRECATED_FOR(gimp_gradient_get_custom_samples)
gdouble* gimp_gradients_sample_custom (gint num_samples, gdouble* gimp_gradients_sample_custom (gint num_samples,
const gdouble *positions, const gdouble *positions,
gboolean reverse); gboolean reverse);
GIMP_DEPRECATED_FOR(gimp_gradient_get_uniform_samples)
gchar* gimp_gradients_get_gradient_data (const gchar *name, gchar* gimp_gradients_get_gradient_data (const gchar *name,
gint sample_size, gint sample_size,
gboolean reverse, gboolean reverse,
gint *width, gint *width,
gdouble **grad_data); gdouble **grad_data);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_IMAGE_PDB_H__
#include "gimpimage_pdb.h"
/** /**

View File

@ -47,9 +47,8 @@ GimpImageBaseType gimp_image_base_type (gint32
GimpPrecision gimp_image_get_precision (gint32 image_ID); GimpPrecision gimp_image_get_precision (gint32 image_ID);
gint gimp_image_width (gint32 image_ID); gint gimp_image_width (gint32 image_ID);
gint gimp_image_height (gint32 image_ID); gint gimp_image_height (gint32 image_ID);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_drawable_free_shadow)
gboolean gimp_image_free_shadow (gint32 image_ID); gboolean gimp_image_free_shadow (gint32 image_ID);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_image_resize (gint32 image_ID, gboolean gimp_image_resize (gint32 image_ID,
gint new_width, gint new_width,
gint new_height, gint new_height,
@ -59,12 +58,11 @@ gboolean gimp_image_resize_to_layers (gint32
gboolean gimp_image_scale (gint32 image_ID, gboolean gimp_image_scale (gint32 image_ID,
gint new_width, gint new_width,
gint new_height); gint new_height);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_scale)
gboolean gimp_image_scale_full (gint32 image_ID, gboolean gimp_image_scale_full (gint32 image_ID,
gint new_width, gint new_width,
gint new_height, gint new_height,
GimpInterpolationType interpolation); GimpInterpolationType interpolation);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_image_crop (gint32 image_ID, gboolean gimp_image_crop (gint32 image_ID,
gint new_width, gint new_width,
gint new_height, gint new_height,
@ -95,33 +93,30 @@ gboolean gimp_image_pick_color (gint32
gint32 gimp_image_pick_correlate_layer (gint32 image_ID, gint32 gimp_image_pick_correlate_layer (gint32 image_ID,
gint x, gint x,
gint y); gint y);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_insert_layer)
gboolean gimp_image_add_layer (gint32 image_ID, gboolean gimp_image_add_layer (gint32 image_ID,
gint32 layer_ID, gint32 layer_ID,
gint position); gint position);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_image_insert_layer (gint32 image_ID, gboolean gimp_image_insert_layer (gint32 image_ID,
gint32 layer_ID, gint32 layer_ID,
gint32 parent_ID, gint32 parent_ID,
gint position); gint position);
gboolean gimp_image_remove_layer (gint32 image_ID, gboolean gimp_image_remove_layer (gint32 image_ID,
gint32 layer_ID); gint32 layer_ID);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_insert_channel)
gboolean gimp_image_add_channel (gint32 image_ID, gboolean gimp_image_add_channel (gint32 image_ID,
gint32 channel_ID, gint32 channel_ID,
gint position); gint position);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_image_insert_channel (gint32 image_ID, gboolean gimp_image_insert_channel (gint32 image_ID,
gint32 channel_ID, gint32 channel_ID,
gint32 parent_ID, gint32 parent_ID,
gint position); gint position);
gboolean gimp_image_remove_channel (gint32 image_ID, gboolean gimp_image_remove_channel (gint32 image_ID,
gint32 channel_ID); gint32 channel_ID);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_insert_vectors)
gboolean gimp_image_add_vectors (gint32 image_ID, gboolean gimp_image_add_vectors (gint32 image_ID,
gint32 vectors_ID, gint32 vectors_ID,
gint position); gint position);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_image_insert_vectors (gint32 image_ID, gboolean gimp_image_insert_vectors (gint32 image_ID,
gint32 vectors_ID, gint32 vectors_ID,
gint32 parent_ID, gint32 parent_ID,

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_LAYER_PDB_H__
#include "gimplayer_pdb.h"
/** /**

View File

@ -53,13 +53,12 @@ gboolean gimp_layer_scale (gint32 l
gint new_width, gint new_width,
gint new_height, gint new_height,
gboolean local_origin); gboolean local_origin);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_layer_scale)
gboolean gimp_layer_scale_full (gint32 layer_ID, gboolean gimp_layer_scale_full (gint32 layer_ID,
gint new_width, gint new_width,
gint new_height, gint new_height,
gboolean local_origin, gboolean local_origin,
GimpInterpolationType interpolation); GimpInterpolationType interpolation);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_layer_resize (gint32 layer_ID, gboolean gimp_layer_resize (gint32 layer_ID,
gint new_width, gint new_width,
gint new_height, gint new_height,

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_PALETTES_PDB_H__
#include "gimppalettes_pdb.h"
/** /**

View File

@ -35,13 +35,13 @@ G_BEGIN_DECLS
gboolean gimp_palettes_refresh (void); gboolean gimp_palettes_refresh (void);
gchar** gimp_palettes_get_list (const gchar *filter, gchar** gimp_palettes_get_list (const gchar *filter,
gint *num_palettes); gint *num_palettes);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_context_get_palette)
gchar* gimp_palettes_get_palette (gint *num_colors); gchar* gimp_palettes_get_palette (gint *num_colors);
GIMP_DEPRECATED_FOR(gimp_palette_entry_get_color)
gchar* gimp_palettes_get_palette_entry (const gchar *name, gchar* gimp_palettes_get_palette_entry (const gchar *name,
gint entry_num, gint entry_num,
gint *num_colors, gint *num_colors,
GimpRGB *color); GimpRGB *color);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_PATHS_PDB_H__
#include "gimppaths_pdb.h"
/** /**

View File

@ -32,41 +32,54 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */ /* For information look into the C source or the html documentation */
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_get_vectors)
gchar** gimp_path_list (gint32 image_ID, gchar** gimp_path_list (gint32 image_ID,
gint *num_paths); gint *num_paths);
GIMP_DEPRECATED_FOR(gimp_image_get_active_vectors)
gchar* gimp_path_get_current (gint32 image_ID); gchar* gimp_path_get_current (gint32 image_ID);
GIMP_DEPRECATED_FOR(gimp_image_set_active_vectors)
gboolean gimp_path_set_current (gint32 image_ID, gboolean gimp_path_set_current (gint32 image_ID,
const gchar *name); const gchar *name);
GIMP_DEPRECATED_FOR(gimp_image_remove_vectors)
gboolean gimp_path_delete (gint32 image_ID, gboolean gimp_path_delete (gint32 image_ID,
const gchar *name); const gchar *name);
GIMP_DEPRECATED_FOR(gimp_vectors_stroke_get_points)
gint gimp_path_get_points (gint32 image_ID, gint gimp_path_get_points (gint32 image_ID,
const gchar *name, const gchar *name,
gint *path_closed, gint *path_closed,
gint *num_path_point_details, gint *num_path_point_details,
gdouble **points_pairs); gdouble **points_pairs);
GIMP_DEPRECATED_FOR(gimp_vectors_stroke_new_from_points)
gboolean gimp_path_set_points (gint32 image_ID, gboolean gimp_path_set_points (gint32 image_ID,
const gchar *name, const gchar *name,
gint ptype, gint ptype,
gint num_path_points, gint num_path_points,
const gdouble *points_pairs); const gdouble *points_pairs);
GIMP_DEPRECATED_FOR(gimp_edit_stroke_vectors)
gboolean gimp_path_stroke_current (gint32 image_ID); gboolean gimp_path_stroke_current (gint32 image_ID);
GIMP_DEPRECATED_FOR(gimp_vectors_stroke_get_point_at_dist)
gint gimp_path_get_point_at_dist (gint32 image_ID, gint gimp_path_get_point_at_dist (gint32 image_ID,
gdouble distance, gdouble distance,
gint *y_point, gint *y_point,
gdouble *slope); gdouble *slope);
GIMP_DEPRECATED_FOR(gimp_vectors_get_tattoo)
gint gimp_path_get_tattoo (gint32 image_ID, gint gimp_path_get_tattoo (gint32 image_ID,
const gchar *name); const gchar *name);
GIMP_DEPRECATED_FOR(gimp_vectors_set_tattoo)
gboolean gimp_path_set_tattoo (gint32 image_ID, gboolean gimp_path_set_tattoo (gint32 image_ID,
const gchar *name, const gchar *name,
gint tattovalue); gint tattovalue);
GIMP_DEPRECATED_FOR(gimp_image_get_vectors_by_tattoo)
gchar* gimp_get_path_by_tattoo (gint32 image_ID, gchar* gimp_get_path_by_tattoo (gint32 image_ID,
gint tattoo); gint tattoo);
GIMP_DEPRECATED_FOR(gimp_vectors_get_linked)
gboolean gimp_path_get_locked (gint32 image_ID, gboolean gimp_path_get_locked (gint32 image_ID,
const gchar *name); const gchar *name);
GIMP_DEPRECATED_FOR(gimp_vectors_set_linked)
gboolean gimp_path_set_locked (gint32 image_ID, gboolean gimp_path_set_locked (gint32 image_ID,
const gchar *name, const gchar *name,
gboolean locked); gboolean locked);
GIMP_DEPRECATED_FOR(gimp_vectors_to_selection)
gboolean gimp_path_to_selection (gint32 image_ID, gboolean gimp_path_to_selection (gint32 image_ID,
const gchar *name, const gchar *name,
GimpChannelOps op, GimpChannelOps op,
@ -74,11 +87,11 @@ gboolean gimp_path_to_selection (gint32 image_ID,
gboolean feather, gboolean feather,
gdouble feather_radius_x, gdouble feather_radius_x,
gdouble feather_radius_y); gdouble feather_radius_y);
GIMP_DEPRECATED_FOR(gimp_vectors_import_from_file)
gboolean gimp_path_import (gint32 image_ID, gboolean gimp_path_import (gint32 image_ID,
const gchar *filename, const gchar *filename,
gboolean merge, gboolean merge,
gboolean scale); gboolean scale);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_PATTERNS_PDB_H__
#include "gimppatterns_pdb.h"
/** /**

View File

@ -35,16 +35,16 @@ G_BEGIN_DECLS
gboolean gimp_patterns_refresh (void); gboolean gimp_patterns_refresh (void);
gchar** gimp_patterns_get_list (const gchar *filter, gchar** gimp_patterns_get_list (const gchar *filter,
gint *num_patterns); gint *num_patterns);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_context_get_pattern)
gchar* gimp_patterns_get_pattern (gint *width, gchar* gimp_patterns_get_pattern (gint *width,
gint *height); gint *height);
GIMP_DEPRECATED_FOR(gimp_pattern_get_pixels)
gchar* gimp_patterns_get_pattern_data (const gchar *name, gchar* gimp_patterns_get_pattern_data (const gchar *name,
gint *width, gint *width,
gint *height, gint *height,
gint *mask_bpp, gint *mask_bpp,
gint *length, gint *length,
guint8 **mask_data); guint8 **mask_data);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_SELECTION_PDB_H__
#include "gimpselection_pdb.h"
/** /**

View File

@ -60,15 +60,14 @@ gboolean gimp_selection_grow (gint32 image_ID,
gint steps); gint steps);
gboolean gimp_selection_shrink (gint32 image_ID, gboolean gimp_selection_shrink (gint32 image_ID,
gint steps); gint steps);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_select_item)
gboolean gimp_selection_layer_alpha (gint32 layer_ID); gboolean gimp_selection_layer_alpha (gint32 layer_ID);
GIMP_DEPRECATED_FOR(gimp_image_select_item)
gboolean gimp_selection_load (gint32 channel_ID); gboolean gimp_selection_load (gint32 channel_ID);
#endif /* GIMP_DISABLE_DEPRECATED */
gint32 gimp_selection_save (gint32 image_ID); gint32 gimp_selection_save (gint32 image_ID);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_select_item)
gboolean gimp_selection_combine (gint32 channel_ID, gboolean gimp_selection_combine (gint32 channel_ID,
GimpChannelOps operation); GimpChannelOps operation);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_SELECTION_TOOLS_PDB_H__
#include "gimpselectiontools_pdb.h"
/** /**

View File

@ -32,7 +32,7 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */ /* For information look into the C source or the html documentation */
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_select_color)
gboolean gimp_by_color_select (gint32 drawable_ID, gboolean gimp_by_color_select (gint32 drawable_ID,
const GimpRGB *color, const GimpRGB *color,
gint threshold, gint threshold,
@ -41,6 +41,7 @@ gboolean gimp_by_color_select (gint32 drawable_ID,
gboolean feather, gboolean feather,
gdouble feather_radius, gdouble feather_radius,
gboolean sample_merged); gboolean sample_merged);
GIMP_DEPRECATED_FOR(gimp_image_select_color)
gboolean gimp_by_color_select_full (gint32 drawable_ID, gboolean gimp_by_color_select_full (gint32 drawable_ID,
const GimpRGB *color, const GimpRGB *color,
gint threshold, gint threshold,
@ -52,6 +53,7 @@ gboolean gimp_by_color_select_full (gint32 drawable_ID,
gboolean sample_merged, gboolean sample_merged,
gboolean select_transparent, gboolean select_transparent,
GimpSelectCriterion select_criterion); GimpSelectCriterion select_criterion);
GIMP_DEPRECATED_FOR(gimp_image_select_ellipse)
gboolean gimp_ellipse_select (gint32 image_ID, gboolean gimp_ellipse_select (gint32 image_ID,
gdouble x, gdouble x,
gdouble y, gdouble y,
@ -61,6 +63,7 @@ gboolean gimp_ellipse_select (gint32 image_ID,
gboolean antialias, gboolean antialias,
gboolean feather, gboolean feather,
gdouble feather_radius); gdouble feather_radius);
GIMP_DEPRECATED_FOR(gimp_image_select_polygon)
gboolean gimp_free_select (gint32 image_ID, gboolean gimp_free_select (gint32 image_ID,
gint num_segs, gint num_segs,
const gdouble *segs, const gdouble *segs,
@ -68,6 +71,7 @@ gboolean gimp_free_select (gint32 image_ID,
gboolean antialias, gboolean antialias,
gboolean feather, gboolean feather,
gdouble feather_radius); gdouble feather_radius);
GIMP_DEPRECATED_FOR(gimp_image_select_contiguous_color)
gboolean gimp_fuzzy_select (gint32 drawable_ID, gboolean gimp_fuzzy_select (gint32 drawable_ID,
gdouble x, gdouble x,
gdouble y, gdouble y,
@ -77,6 +81,7 @@ gboolean gimp_fuzzy_select (gint32 drawable_ID,
gboolean feather, gboolean feather,
gdouble feather_radius, gdouble feather_radius,
gboolean sample_merged); gboolean sample_merged);
GIMP_DEPRECATED_FOR(gimp_image_select_contiguous_color)
gboolean gimp_fuzzy_select_full (gint32 drawable_ID, gboolean gimp_fuzzy_select_full (gint32 drawable_ID,
gdouble x, gdouble x,
gdouble y, gdouble y,
@ -89,6 +94,7 @@ gboolean gimp_fuzzy_select_full (gint32 drawable_ID,
gboolean sample_merged, gboolean sample_merged,
gboolean select_transparent, gboolean select_transparent,
GimpSelectCriterion select_criterion); GimpSelectCriterion select_criterion);
GIMP_DEPRECATED_FOR(gimp_image_select_rectangle)
gboolean gimp_rect_select (gint32 image_ID, gboolean gimp_rect_select (gint32 image_ID,
gdouble x, gdouble x,
gdouble y, gdouble y,
@ -97,6 +103,7 @@ gboolean gimp_rect_select (gint32 image_ID,
GimpChannelOps operation, GimpChannelOps operation,
gboolean feather, gboolean feather,
gdouble feather_radius); gdouble feather_radius);
GIMP_DEPRECATED_FOR(gimp_image_select_round_rectangle)
gboolean gimp_round_rect_select (gint32 image_ID, gboolean gimp_round_rect_select (gint32 image_ID,
gdouble x, gdouble x,
gdouble y, gdouble y,
@ -109,7 +116,6 @@ gboolean gimp_round_rect_select (gint32 image_ID,
gboolean feather, gboolean feather,
gdouble feather_radius_x, gdouble feather_radius_x,
gdouble feather_radius_y); gdouble feather_radius_y);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_TEXT_LAYER_PDB_H__
#include "gimptextlayer_pdb.h"
/** /**

View File

@ -83,13 +83,13 @@ gboolean gimp_text_layer_set_letter_spacing (gint32
gboolean gimp_text_layer_resize (gint32 layer_ID, gboolean gimp_text_layer_resize (gint32 layer_ID,
gdouble width, gdouble width,
gdouble height); gdouble height);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_text_layer_get_hint_style)
gboolean gimp_text_layer_get_hinting (gint32 layer_ID, gboolean gimp_text_layer_get_hinting (gint32 layer_ID,
gboolean *autohint); gboolean *autohint);
GIMP_DEPRECATED_FOR(gimp_text_layer_set_hint_style)
gboolean gimp_text_layer_set_hinting (gint32 layer_ID, gboolean gimp_text_layer_set_hinting (gint32 layer_ID,
gboolean hinting, gboolean hinting,
gboolean autohint); gboolean autohint);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_TEXT_TOOL_PDB_H__
#include "gimptexttool_pdb.h"
/** /**

View File

@ -50,7 +50,7 @@ gboolean gimp_text_get_extents_fontname (const gchar *text,
gint *height, gint *height,
gint *ascent, gint *ascent,
gint *descent); gint *descent);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_text_fontname)
gint32 gimp_text (gint32 image_ID, gint32 gimp_text (gint32 image_ID,
gint32 drawable_ID, gint32 drawable_ID,
gdouble x, gdouble x,
@ -68,6 +68,7 @@ gint32 gimp_text (gint32 image_ID,
const gchar *spacing, const gchar *spacing,
const gchar *registry, const gchar *registry,
const gchar *encoding); const gchar *encoding);
GIMP_DEPRECATED_FOR(gimp_text_get_extents_fontname)
gboolean gimp_text_get_extents (const gchar *text, gboolean gimp_text_get_extents (const gchar *text,
gdouble size, gdouble size,
GimpSizeType size_type, GimpSizeType size_type,
@ -83,7 +84,6 @@ gboolean gimp_text_get_extents (const gchar *text,
gint *height, gint *height,
gint *ascent, gint *ascent,
gint *descent); gint *descent);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -23,9 +23,6 @@
#include "config.h" #include "config.h"
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_TRANSFORM_TOOLS_PDB_H__
#include "gimptransformtools_pdb.h"
/** /**

View File

@ -32,9 +32,10 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */ /* For information look into the C source or the html documentation */
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_item_transform_flip_simple)
gint32 gimp_flip (gint32 drawable_ID, gint32 gimp_flip (gint32 drawable_ID,
GimpOrientationType flip_type); GimpOrientationType flip_type);
GIMP_DEPRECATED_FOR(gimp_item_transform_perspective)
gint32 gimp_perspective (gint32 drawable_ID, gint32 gimp_perspective (gint32 drawable_ID,
gboolean interpolation, gboolean interpolation,
gdouble x0, gdouble x0,
@ -45,19 +46,23 @@ gint32 gimp_perspective (gint32 drawable_ID,
gdouble y2, gdouble y2,
gdouble x3, gdouble x3,
gdouble y3); gdouble y3);
GIMP_DEPRECATED_FOR(gimp_item_transform_rotate)
gint32 gimp_rotate (gint32 drawable_ID, gint32 gimp_rotate (gint32 drawable_ID,
gboolean interpolation, gboolean interpolation,
gdouble angle); gdouble angle);
GIMP_DEPRECATED_FOR(gimp_item_transform_scale)
gint32 gimp_scale (gint32 drawable_ID, gint32 gimp_scale (gint32 drawable_ID,
gboolean interpolation, gboolean interpolation,
gdouble x0, gdouble x0,
gdouble y0, gdouble y0,
gdouble x1, gdouble x1,
gdouble y1); gdouble y1);
GIMP_DEPRECATED_FOR(gimp_item_transform_shear)
gint32 gimp_shear (gint32 drawable_ID, gint32 gimp_shear (gint32 drawable_ID,
gboolean interpolation, gboolean interpolation,
GimpOrientationType shear_type, GimpOrientationType shear_type,
gdouble magnitude); gdouble magnitude);
GIMP_DEPRECATED_FOR(gimp_item_transform_2d)
gint32 gimp_transform_2d (gint32 drawable_ID, gint32 gimp_transform_2d (gint32 drawable_ID,
gboolean interpolation, gboolean interpolation,
gdouble source_x, gdouble source_x,
@ -67,7 +72,6 @@ gint32 gimp_transform_2d (gint32 drawable_ID,
gdouble angle, gdouble angle,
gdouble dest_x, gdouble dest_x,
gdouble dest_y); gdouble dest_y);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS G_END_DECLS

View File

@ -25,9 +25,6 @@
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_VECTORS_PDB_H__
#include "gimpvectors_pdb.h"
/** /**

View File

@ -119,14 +119,13 @@ gint gimp_vectors_bezier_stroke_new_ellipse (gint32
gdouble radius_x, gdouble radius_x,
gdouble radius_y, gdouble radius_y,
gdouble angle); gdouble angle);
#ifndef GIMP_DISABLE_DEPRECATED GIMP_DEPRECATED_FOR(gimp_image_select_item)
gboolean gimp_vectors_to_selection (gint32 vectors_ID, gboolean gimp_vectors_to_selection (gint32 vectors_ID,
GimpChannelOps operation, GimpChannelOps operation,
gboolean antialias, gboolean antialias,
gboolean feather, gboolean feather,
gdouble feather_radius_x, gdouble feather_radius_x,
gdouble feather_radius_y); gdouble feather_radius_y);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_vectors_import_from_file (gint32 image_ID, gboolean gimp_vectors_import_from_file (gint32 image_ID,
const gchar *filename, const gchar *filename,
gboolean merge, gboolean merge,

View File

@ -85,14 +85,16 @@ sub generate {
my %usednames; my %usednames;
my $retdesc = ""; my $retdesc = "";
if ($proc->{deprecated} && !$out->{deprecated}) { if ($proc->{deprecated}) {
push @{$out->{protos}}, "#ifndef GIMP_DISABLE_DEPRECATED\n"; if ($proc->{deprecated} eq 'NONE') {
$out->{deprecated} = 1; push @{$out->{protos}}, "GIMP_DEPRECATED\n";
$out->{seen_deprecated} = 1; }
} else {
elsif (!$proc->{deprecated} && $out->{deprecated}) { my $underscores = $proc->{deprecated};
push @{$out->{protos}}, "#endif /* GIMP_DISABLE_DEPRECATED */\n"; $underscores =~ s/-/_/g;
$out->{deprecated} = 0;
push @{$out->{protos}}, "GIMP_DEPRECATED_FOR($underscores)\n";
}
} }
# Find the return argument (defaults to the first arg if not # Find the return argument (defaults to the first arg if not
@ -474,11 +476,6 @@ $wrapped$funcname ($clist)
CODE CODE
} }
if ($out->{deprecated}) {
push @{$out->{protos}}, "#endif /* GIMP_DISABLE_DEPRECATED */\n";
$out->{deprecated} = 0;
}
my $lgpl_top = <<'LGPL'; my $lgpl_top = <<'LGPL';
/* LIBGIMP - The GIMP Library /* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
@ -547,7 +544,7 @@ LGPL
foreach (@{$out->{protos}}) { foreach (@{$out->{protos}}) {
my $arglist; my $arglist;
if (!/^#/) { if (!/^GIMP_DEPRECATED/) {
my $len; my $len;
$arglist = [ split(' ', $_, 3) ]; $arglist = [ split(' ', $_, 3) ];
@ -660,11 +657,6 @@ HEADER
print CFILE qq/#include "config.h"\n\n/; print CFILE qq/#include "config.h"\n\n/;
print CFILE $out->{headers}, "\n" if exists $out->{headers}; print CFILE $out->{headers}, "\n" if exists $out->{headers};
print CFILE qq/#include "gimp.h"\n/; print CFILE qq/#include "gimp.h"\n/;
if ($out->{seen_deprecated}) {
print CFILE "#undef GIMP_DISABLE_DEPRECATED\n";
print CFILE "#undef __GIMP_\U$group\E_PDB_H__\n";
print CFILE qq/#include "${hname}"\n/;
}
$long_desc = &desc_wrap($main::grp{$group}->{doc_long_desc}); $long_desc = &desc_wrap($main::grp{$group}->{doc_long_desc});
print CFILE <<SECTION_DOCS; print CFILE <<SECTION_DOCS;