Commit 96c1f754 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: remove a ton of deprecated API that is unused

parent 96ac0d08
Pipeline #108856 passed with stages
in 23 minutes and 40 seconds
......@@ -47,7 +47,6 @@ EXPORTS
gimp_channel_get_type
gimp_channel_id_get_type
gimp_channel_new
gimp_channel_new_deprecated
gimp_channel_new_from_component
gimp_channel_set_color
gimp_channel_set_opacity
......@@ -215,14 +214,10 @@ EXPORTS
gimp_drawable_get_shadow_buffer_deprecated
gimp_drawable_get_sub_thumbnail
gimp_drawable_get_sub_thumbnail_data
gimp_drawable_get_sub_thumbnail_data_deprecated
gimp_drawable_get_sub_thumbnail_deprecated
gimp_drawable_get_thumbnail
gimp_drawable_get_thumbnail_data
gimp_drawable_get_thumbnail_data_deprecated
gimp_drawable_get_thumbnail_deprecated
gimp_drawable_get_thumbnail_format
gimp_drawable_get_thumbnail_format_deprecated
gimp_drawable_get_type
gimp_drawable_has_alpha
gimp_drawable_height
......@@ -360,7 +355,6 @@ EXPORTS
gimp_image_base_type
gimp_image_clean_all
gimp_image_convert_color_profile
gimp_image_convert_color_profile_deprecated
gimp_image_convert_color_profile_from_file
gimp_image_convert_grayscale
gimp_image_convert_indexed
......@@ -389,16 +383,13 @@ EXPORTS
gimp_image_get_channel_by_name
gimp_image_get_channel_by_tattoo
gimp_image_get_channels
gimp_image_get_channels_deprecated
gimp_image_get_color_profile
gimp_image_get_color_profile_deprecated
gimp_image_get_colormap
gimp_image_get_colormap_deprecated
gimp_image_get_component_active
gimp_image_get_component_visible
gimp_image_get_default_new_layer_mode
gimp_image_get_effective_color_profile
gimp_image_get_effective_color_profile_deprecated
gimp_image_get_exported_uri
gimp_image_get_filename
gimp_image_get_floating_sel
......@@ -423,15 +414,12 @@ EXPORTS
gimp_image_get_tattoo_state
gimp_image_get_thumbnail
gimp_image_get_thumbnail_data
gimp_image_get_thumbnail_data_deprecated
gimp_image_get_thumbnail_deprecated
gimp_image_get_type
gimp_image_get_unit
gimp_image_get_uri
gimp_image_get_vectors
gimp_image_get_vectors_by_name
gimp_image_get_vectors_by_tattoo
gimp_image_get_vectors_deprecated
gimp_image_get_xcf_uri
gimp_image_grid_get_background_color
gimp_image_grid_get_foreground_color
......@@ -451,7 +439,6 @@ EXPORTS
gimp_image_is_dirty
gimp_image_is_valid
gimp_image_list_channels
gimp_image_list_deprecated
gimp_image_list_layers
gimp_image_list_vectors
gimp_image_lower_item
......@@ -485,7 +472,6 @@ EXPORTS
gimp_image_set_active_layer
gimp_image_set_active_vectors
gimp_image_set_color_profile
gimp_image_set_color_profile_deprecated
gimp_image_set_color_profile_from_file
gimp_image_set_colormap
gimp_image_set_colormap_deprecated
......@@ -589,7 +575,6 @@ EXPORTS
gimp_layer_new_deprecated
gimp_layer_new_from_drawable
gimp_layer_new_from_pixbuf
gimp_layer_new_from_pixbuf_deprecated
gimp_layer_new_from_surface
gimp_layer_new_from_surface_deprecated
gimp_layer_new_from_visible
......@@ -756,7 +741,6 @@ EXPORTS
gimp_selection_bounds
gimp_selection_feather
gimp_selection_float
gimp_selection_float_deprecated
gimp_selection_flood
gimp_selection_get_type
gimp_selection_grow
......
......@@ -37,10 +37,6 @@ gimp_channel_init (GimpChannel *channel)
{
}
/* Public API. */
/**
* gimp_channel_new:
* @image: The image to which to add the channel.
......@@ -78,44 +74,3 @@ gimp_channel_new (GimpImage *image,
opacity,
color);
}
/* Deprecated API. */
/**
* gimp_channel_new_deprecated: (skip)
* @image_ID: The image to which to add the channel.
* @name: The channel name.
* @width: The channel width.
* @height: The channel height.
* @opacity: The channel opacity.
* @color: The channel compositing color.
*
* Create a new channel.
*
* This procedure creates a new channel with the specified width and
* height. Name, opacity, and color are also supplied parameters. The
* new channel still needs to be added to the image, as this is not
* automatic. Add the new channel with the gimp_image_insert_channel()
* command. Other attributes such as channel show masked, should be
* set with explicit procedure calls. The channel's contents are
* undefined initially.
*
* Returns: The newly created channel.
*/
gint32
gimp_channel_new_deprecated (gint32 image_id,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color)
{
GimpChannel *channel;
channel = gimp_channel_new (gimp_image_get_by_id (image_id),
name, width, height,
opacity, color);
return gimp_item_get_id (GIMP_ITEM (channel));
}
......@@ -62,33 +62,16 @@ struct _GimpChannelClass
void (*_gimp_reserved9) (void);
};
GType gimp_channel_get_type (void) G_GNUC_CONST;
GType gimp_channel_get_type (void) G_GNUC_CONST;
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
GimpChannel * gimp_channel_new (GimpImage *image,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_channel_new gimp_channel_new_deprecated
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
gint32 gimp_channel_new_deprecated (gint32 image_ID,
GimpChannel * gimp_channel_new (GimpImage *image,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color);
G_END_DECLS
#endif /* __GIMP_CHANNEL_H__ */
......@@ -44,6 +44,19 @@ gimp_drawable_init (GimpDrawable *drawable)
/* Public API. */
/**
* gimp_drawable_get_thumbnail_data:
* @drawable: the drawable
* @width: (inout): the requested thumbnail width (<= 1024 pixels)
* @height: (inout): the requested thumbnail height (<= 1024 pixels)
* @bpp: (out): the bytes per pixel of the returned thubmnail data
*
* Retrieves thumbnail data for the drawable identified by @drawable.
* The thumbnail will be not larger than the requested size.
*
* Returns: (transfer full) (nullable): thumbnail data or %NULL if
* @drawable is invalid.
**/
guchar *
gimp_drawable_get_thumbnail_data (GimpDrawable *drawable,
gint *width,
......@@ -72,7 +85,7 @@ gimp_drawable_get_thumbnail_data (GimpDrawable *drawable,
/**
* gimp_drawable_get_thumbnail:
* @drawable: the drawable ID
* @drawable: the drawable
* @width: the requested thumbnail width (<= 1024 pixels)
* @height: the requested thumbnail height (<= 1024 pixels)
* @alpha: how to handle an alpha channel
......@@ -404,83 +417,6 @@ gimp_drawable_get_thumbnail_data_deprecated (gint32 drawable_ID,
width, height, bpp);
}
/**
* gimp_drawable_get_thumbnail_deprecated: (skip)
* @drawable_ID: the drawable ID
* @width: the requested thumbnail width (<= 1024 pixels)
* @height: the requested thumbnail height (<= 1024 pixels)
* @alpha: how to handle an alpha channel
*
* Retrieves a thumbnail pixbuf for the drawable identified by
* @drawable_ID. The thumbnail will be not larger than the requested
* size.
*
* Returns: (transfer full) (nullable): a new #GdkPixbuf or %NULL if
* @drawable_ID is invalid.
*
* Since: 2.2
**/
GdkPixbuf *
gimp_drawable_get_thumbnail_deprecated (gint32 drawable_ID,
gint width,
gint height,
GimpPixbufTransparency alpha)
{
return gimp_drawable_get_thumbnail (GIMP_DRAWABLE (gimp_item_get_by_id (drawable_ID)),
width, height, alpha);
}
guchar *
gimp_drawable_get_sub_thumbnail_data_deprecated (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint *dest_width,
gint *dest_height,
gint *bpp)
{
return gimp_drawable_get_sub_thumbnail_data (GIMP_DRAWABLE (gimp_item_get_by_id (drawable_ID)),
src_x, src_y,
src_width, src_height,
dest_width, dest_height, bpp);
}
/**
* gimp_drawable_get_sub_thumbnail_deprecated: (skip)
* @drawable_ID: the drawable ID
* @src_x: the x coordinate of the area
* @src_y: the y coordinate of the area
* @src_width: the width of the area
* @src_height: the height of the area
* @dest_width: the requested thumbnail width (<= 1024 pixels)
* @dest_height: the requested thumbnail height (<= 1024 pixels)
* @alpha: how to handle an alpha channel
*
* Retrieves a thumbnail pixbuf for the drawable identified by
* @drawable_ID. The thumbnail will be not larger than the requested
* size.
*
* Returns: (transfer full): a new #GdkPixbuf
*
* Since: 2.2
**/
GdkPixbuf *
gimp_drawable_get_sub_thumbnail_deprecated (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
GimpPixbufTransparency alpha)
{
return gimp_drawable_get_sub_thumbnail (GIMP_DRAWABLE (gimp_item_get_by_id (drawable_ID)),
src_x, src_y,
src_width, src_height,
dest_width, dest_height, alpha);
}
/**
* gimp_drawable_get_buffer_deprecated: (skip)
* @drawable_ID: the ID of the #GimpDrawable to get the buffer for.
......@@ -538,18 +474,3 @@ gimp_drawable_get_format_deprecated (gint32 drawable_ID)
{
return gimp_drawable_get_format (GIMP_DRAWABLE (gimp_item_get_by_id (drawable_ID)));
}
/**
* gimp_drawable_get_thumbnail_format_deprecated: (skip)
* @drawable_ID: the ID of the #GimpDrawable to get the thumbnail format for.
*
* Returns the #Babl thumbnail format of the drawable.
*
* Returns: The #Babl thumbnail format.
*
* Since: 2.10.14
*/
const Babl *
gimp_drawable_get_thumbnail_format_deprecated (gint32 drawable_ID)
{
return gimp_drawable_get_thumbnail_format (GIMP_DRAWABLE (gimp_item_get_by_id (drawable_ID)));
}
......@@ -103,11 +103,7 @@ GdkPixbuf * gimp_drawable_get_sub_thumbnail (GimpDrawable *drawable,
#define gimp_drawable_get_buffer gimp_drawable_get_buffer_deprecated
#define gimp_drawable_get_shadow_buffer gimp_drawable_get_shadow_buffer_deprecated
#define gimp_drawable_get_format gimp_drawable_get_format_deprecated
#define gimp_drawable_get_thumbnail_format gimp_drawable_get_thumbnail_format_deprecated
#define gimp_drawable_get_thumbnail_data gimp_drawable_get_thumbnail_data_deprecated
#define gimp_drawable_get_thumbnail gimp_drawable_get_thumbnail_deprecated
#define gimp_drawable_get_sub_thumbnail_data gimp_drawable_get_sub_thumbnail_data_deprecated
#define gimp_drawable_get_sub_thumbnail gimp_drawable_get_sub_thumbnail_deprecated
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
......@@ -116,33 +112,11 @@ GeglBuffer * gimp_drawable_get_buffer_deprecated (gint32 dra
GeglBuffer * gimp_drawable_get_shadow_buffer_deprecated (gint32 drawable_ID);
const Babl * gimp_drawable_get_format_deprecated (gint32 drawable_ID);
const Babl * gimp_drawable_get_thumbnail_format_deprecated (gint32 drawable_ID);
guchar * gimp_drawable_get_thumbnail_data_deprecated (gint32 drawable_ID,
gint *width,
gint *height,
gint *bpp);
GdkPixbuf * gimp_drawable_get_thumbnail_deprecated (gint32 drawable_ID,
gint width,
gint height,
GimpPixbufTransparency alpha);
guchar * gimp_drawable_get_sub_thumbnail_data_deprecated (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint *dest_width,
gint *dest_height,
gint *bpp);
GdkPixbuf * gimp_drawable_get_sub_thumbnail_deprecated (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
GimpPixbufTransparency alpha);
G_END_DECLS
......
......@@ -1101,60 +1101,3 @@ gimp_export_dialog_get_content_area (GtkWidget *dialog)
{
return gtk_dialog_get_content_area (GTK_DIALOG (dialog));
}
/* Deprecated API. */
/**
* gimp_export_image_deprecated: (skip)
* @image_id: Pointer to the image ID.
* @drawable_ID: Pointer to the drawable_ID.
* @format_name: The (short) name of the image_format (e.g. JPEG or GIF).
* @capabilities: What can the image_format do?
*
* Takes an image and a drawable to be saved together with a
* description of the capabilities of the image_format. If the
* type of image doesn't match the capabilities of the format
* a dialog is opened that informs the user that the image has
* to be exported and offers to do the necessary conversions.
*
* If the user chooses to export the image, a copy is created.
* This copy is then converted, @image and @drawable_ID are changed to
* point to the new image and the procedure returns GIMP_EXPORT_EXPORT.
* The save_plugin has to take care of deleting the created image using
* gimp_image_delete() when it has saved it.
*
* If the user chooses to Ignore the export problem, @image and
* @drawable_ID are not altered, GIMP_EXPORT_IGNORE is returned and the
* save_plugin should try to save the original image. If the user
* chooses Cancel, GIMP_EXPORT_CANCEL is returned and the save_plugin
* should quit itself with status %GIMP_PDB_CANCEL.
*
* If @format_name is NULL, no dialogs will be shown and this function
* will behave as if the user clicked on the 'Export' button, if a
* dialog would have been shown.
*
* Returns: An enum of #GimpExportReturn describing the user_action.
**/
GimpExportReturn
gimp_export_image_deprecated (gint32 *image_ID,
gint32 *drawable_ID,
const gchar *format_name,
GimpExportCapabilities capabilities)
{
GimpImage *image;
GimpDrawable *drawable;
GimpExportReturn retval;
image = gimp_image_get_by_id (*image_ID);
drawable = GIMP_DRAWABLE (gimp_item_get_by_id (*drawable_ID));
retval = gimp_export_image (&image, &drawable,
format_name, capabilities);
*image_ID = gimp_image_get_id (image);
*drawable_ID = gimp_item_get_id (GIMP_ITEM (drawable));
return retval;
}
......@@ -80,26 +80,11 @@ GtkWidget * gimp_export_dialog_new (const gchar *
const gchar *help_id);
GtkWidget * gimp_export_dialog_get_content_area (GtkWidget *dialog);
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
GimpExportReturn gimp_export_image (GimpImage **image,
GimpDrawable **drawable,
const gchar *format_name,
GimpExportCapabilities capabilities);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_export_image gimp_export_image_deprecated
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
GimpExportReturn gimp_export_image_deprecated (gint32 *image_id,
gint32 *drawable_ID,
const gchar *format_name,
GimpExportCapabilities capabilities);
G_END_DECLS
......
......@@ -648,24 +648,6 @@ gimp_image_set_metadata (GimpImage *image,
/* Deprecated API. */
/**
* gimp_image_list_deprecated: (skip)
* @num_images: (out): The number of images currently open.
*
* Returns the list of images currently open.
*
* This procedure returns the list of images currently open in GIMP.
*
* Returns: (array length=num_images) (element-type gint32) (transfer full):
* The list of images currently open.
* The returned value must be freed with g_free().
**/
gint *
gimp_image_list_deprecated (gint *num_images)
{
return _gimp_image_list (num_images);
}
/**
* gimp_image_get_layers_deprecated: (skip)
* @image_id: The image id.
......@@ -688,55 +670,6 @@ gimp_image_get_layers_deprecated (gint32 image_id,
num_layers);
}
/**
* gimp_image_get_channels_deprecated: (skip)
* @image_id: The image.
* @num_channels: (out): The number of channels contained in the image.
*
* Returns the list of channels contained in the specified image.
*
* This procedure returns the list of channels contained in the
* specified image. This does not include the selection mask, or layer
* masks. The order is from topmost to bottommost. Note that
* "channels" are custom channels and do not include the image's
* color components.
*
* Returns: (array length=num_channels):
* The list of channels contained in the image.
* The returned value must be freed with g_free().
**/
gint *
gimp_image_get_channels_deprecated (gint32 image_id,
gint *num_channels)
{
return _gimp_image_get_layers (gimp_image_get_by_id (image_id),
num_channels);
}
/**
* gimp_image_get_vectors_deprecated: (skip)
* @image_id: The image.
* @num_vectors: (out): The number of vectors contained in the image.
*
* Returns the list of vectors contained in the specified image.
*
* This procedure returns the list of vectors contained in the
* specified image.
*
* Returns: (array length=num_vectors) (element-type gint32) (transfer full):
* The list of vectors contained in the image.
* The returned value must be freed with g_free().
*
* Since: 2.4
**/
gint *
gimp_image_get_vectors_deprecated (gint32 image_id,
gint *num_vectors)
{
return _gimp_image_get_vectors (gimp_image_get_by_id (image_id),
num_vectors);
}
/**
* gimp_image_get_colormap_deprecated: (skip)
* @image_id: The image.
......@@ -782,56 +715,6 @@ gimp_image_set_colormap_deprecated (gint32 image_id,
colormap, num_colors);
}
/**
* gimp_image_get_thumbnail_data_deprecated: (skip)
* @image_id: The image.
* @width: (inout): The requested thumbnail width.
* @height: (inout): The requested thumbnail height.
* @bpp: (out): The previews bpp.
*
* Get a thumbnail of an image.
*
* This function gets data from which a thumbnail of an image preview
* can be created. Maximum x or y dimension is 1024 pixels. The pixels
* are returned in RGB[A] or GRAY[A] format. The bpp return value
* gives the number of bytes per pixel in the image.
*
* Returns: (transfer full): the thumbnail data.
**/
guchar *
gimp_image_get_thumbnail_data_deprecated (gint32 image_id,
gint *width,
gint *height,
gint *bpp)
{
return gimp_image_get_thumbnail_data (gimp_image_get_by_id (image_id),
width, height, bpp);
}
/**
* gimp_image_get_thumbnail_deprecated: (skip)
* @image_id: the image ID
* @width: the requested thumbnail width (<= 1024 pixels)
* @height: the requested thumbnail height (<= 1024 pixels)
* @alpha: how to handle an alpha channel
*
* Retrieves a thumbnail pixbuf for the image identified by @image->priv->id.
* The thumbnail will be not larger than the requested size.
*
* Returns: (transfer full): a new #GdkPixbuf
*
* Since: 2.2
**/
GdkPixbuf *
gimp_image_get_thumbnail_deprecated (gint32 image_id,
gint width,
gint height,
GimpPixbufTransparency alpha)
{
return gimp_image_get_thumbnail (gimp_image_get_by_id (image_id),
width, height, alpha);
}
/**
* gimp_image_get_metadata_deprecated: (skip)
* @image_id: The image.
......
......@@ -105,43 +105,23 @@ gboolean gimp_image_set_metadata (GimpImage *image,
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_image_list gimp_image_list_deprecated
#define gimp_image_get_layers gimp_image_get_layers_deprecated
#define gimp_image_get_channel gimp_image_get_channels_deprecated
#define gimp_image_get_vectors gimp_image_get_vectors_deprecated
#define gimp_image_get_colormap gimp_image_get_colormap_deprecated
#define gimp_image_set_colormap gimp_image_set_colormap_deprecated
#define gimp_image_get_thumbnail_data gimp_image_get_thumbnail_data_deprecated
#define gimp_image_get_thumbnail gimp_image_get_thumbnail_deprecated
#define gimp_image_get_metadata gimp_image_get_metadata_deprecated
#define gimp_image_set_metadata gimp_image_set_metadata_deprecated
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
gint * gimp_image_list_deprecated (gint *num_images);
gint * gimp_image_get_layers_deprecated (gint32 image_id,
gint *num_layers);
gint * gimp_image_get_channels_deprecated (gint32 image_id,
gint *num_channels);
gint * gimp_image_get_vectors_deprecated (gint32 image_id,
gint *num_vectors);
guchar * gimp_image_get_colormap_deprecated (gint32 image_id,
gint *num_colors);
gboolean gimp_image_set_colormap_deprecated (gint32 image_id,
const guchar *colormap,
gint num_colors);
guchar * gimp_image_get_thumbnail_data_deprecated (gint32 image_id,
gint *width,
gint *height,
gint *bpp);
GdkPixbuf * gimp_image_get_thumbnail_deprecated (gint32 image_id,
gint width,
gint height,
GimpPixbufTransparency alpha);
GimpMetadata * gimp_image_get_metadata_deprecated (gint32 image_id);
gboolean gimp_image_set_metadata_deprecated (gint32 image_id,
GimpMetadata *metadata);
......
......@@ -171,91 +171,3 @@ gimp_image_convert_color_profile (GimpImage *image,
return _gimp_image_convert_color_profile (image, length, data,
intent, bpc);
}
/* Deprecated API. */
/**
* gimp_image_get_color_profile_deprecated: (skip)
* @image_id: The image.
*
* Returns the image's color profile
*
* This procedure returns the image's color profile, or NULL if the
* image has no color profile assigned.
*
* Returns: (transfer full): The image's color profile. The returned
* value must be freed with g_object_unref().
**/
GimpColorProfile *
gimp_image_get_color_profile_deprecated (gint32 image_id)
{
return gimp_image_get_color_profile (gimp_image_get_by_id (image_id));
}
/**
* gimp_image_set_color_profile_deprecated: (skip)
* @image_id: The image.
* @profile: A #GimpColorProfile, or %NULL.
*
* Sets the image's color profile
*
* This procedure sets the image's color profile.
*
* Returns: %TRUE on success.
**/
gboolean
gimp_image_set_color_profile_deprecated (gint32 image_id,
GimpColorProfile *profile)
{
return gimp_image_set_color_profile (gimp_image_get_by_id (image_id),
profile);
}
/**
* gimp_image_get_effective_color_profile_deprecated: (skip)
* @image_id: The image.
*
* Returns the color profile that is used for the image.
*
* This procedure returns the color profile that is actually used for
* this image, which is the profile returned by
* gimp_image_get_color_profile()_deprecated if the image has a profile assigned,
* or the default RGB profile from preferences if no profile is
* assigned to the image. If there is no default RGB profile configured
* in preferences either, a generated default RGB profile is returned.
*
* Returns: (transfer full): The color profile. The returned value must
* be freed with g_object_unref().
**/
GimpColorProfile *
gimp_image_get_effective_color_profile_deprecated (gint32 image_id)
{
return gimp_image_get_effective_color_profile (gimp_image_get_by_id (image_id));
}
/**
* gimp_image_convert_color_profile_deprecated: (skip)
* @image_id: The image.
* @profile: The color profile to convert to.
* @intent: Rendering intent.
* @bpc: Black point compensation.
*
* Convert the image's layers to a color profile
*
* This procedure converts from the image's color profile (or the
* default RGB profile if none is set) to the given color profile. Only
* RGB color profiles are accepted.
*
* Returns: TRUE on success.
**/
gboolean
gimp_image_convert_color_profile_deprecated (gint32 image_id,
GimpColorProfile *profile,
GimpColorRenderingIntent intent,
gboolean bpc)
{
return gimp_image_convert_color_profile (gimp_image_get_by_id (image_id),
profile, intent, bpc);
}
......@@ -30,8 +30,6 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
GimpColorProfile * gimp_image_get_color_profile (GimpImage *image);
gboolean gimp_image_set_color_profile (GimpImage *image,
GimpColorProfile *profile);
......@@ -43,27 +41,6 @@ gboolean gimp_image_convert_color_profile (GimpImage
GimpColorRenderingIntent intent,
gboolean bpc);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_image_get_color_profile gimp_image_get_color_profile_deprecated
#define gimp_image_set_color_profile gimp_image_set_color_profile_deprecated
#define gimp_image_get_effective_color_profile gimp_image_get_effective_color_profile_deprecated
#define gimp_image_convert_color_profile gimp_image_convert_color_profile_deprecated
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
GimpColorProfile * gimp_image_get_color_profile_deprecated (gint32 image_id);
gboolean gimp_image_set_color_profile_deprecated (gint32 image_id,
GimpColorProfile *profile);
GimpColorProfile * gimp_image_get_effective_color_profile_deprecated (gint32 image_id);
gboolean gimp_image_convert_color_profile_deprecated (gint32 image_id,
GimpColorProfile *profile,