mirror of https://github.com/GNOME/gimp.git
libgimp: remove deprecated metadata functions
This commit is contained in:
parent
b6b84f7afa
commit
91d9e4d08f
|
@ -403,7 +403,6 @@ EXPORTS
|
|||
gimp_image_get_layers
|
||||
gimp_image_get_layers_deprecated
|
||||
gimp_image_get_metadata
|
||||
gimp_image_get_metadata_deprecated
|
||||
gimp_image_get_name
|
||||
gimp_image_get_parasite
|
||||
gimp_image_get_parasite_list
|
||||
|
@ -479,7 +478,6 @@ EXPORTS
|
|||
gimp_image_set_component_visible
|
||||
gimp_image_set_filename
|
||||
gimp_image_set_metadata
|
||||
gimp_image_set_metadata_deprecated
|
||||
gimp_image_set_resolution
|
||||
gimp_image_set_tattoo_state
|
||||
gimp_image_set_unit
|
||||
|
|
|
@ -714,44 +714,3 @@ gimp_image_set_colormap_deprecated (gint32 image_id,
|
|||
return gimp_image_set_colormap (gimp_image_get_by_id (image_id),
|
||||
colormap, num_colors);
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_image_get_metadata_deprecated: (skip)
|
||||
* @image_id: The image.
|
||||
*
|
||||
* Returns the image's metadata.
|
||||
*
|
||||
* Returns exif/iptc/xmp metadata from the image.
|
||||
*
|
||||
* Returns: (nullable) (transfer full): The exif/ptc/xmp metadata,
|
||||
* or %NULL if there is none.
|
||||
*
|
||||
* Since: 2.10
|
||||
**/
|
||||
GimpMetadata *
|
||||
gimp_image_get_metadata_deprecated (gint32 image_id)
|
||||
{
|
||||
return gimp_image_get_metadata (gimp_image_get_by_id (image_id));
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_image_set_metadata_deprecated: (skip)
|
||||
* @image_id: The image.
|
||||
* @metadata: The exif/ptc/xmp metadata.
|
||||
*
|
||||
* Set the image's metadata.
|
||||
*
|
||||
* Sets exif/iptc/xmp metadata on the image, or deletes it if
|
||||
* @metadata is %NULL.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*
|
||||
* Since: 2.10
|
||||
**/
|
||||
gboolean
|
||||
gimp_image_set_metadata_deprecated (gint32 image_id,
|
||||
GimpMetadata *metadata)
|
||||
{
|
||||
return gimp_image_set_metadata (gimp_image_get_by_id (image_id),
|
||||
metadata);
|
||||
}
|
||||
|
|
|
@ -109,12 +109,9 @@ gboolean gimp_image_set_metadata (GimpImage *image,
|
|||
#define gimp_image_get_layers gimp_image_get_layers_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_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_get_layers_deprecated (gint32 image_id,
|
||||
gint *num_layers);
|
||||
guchar * gimp_image_get_colormap_deprecated (gint32 image_id,
|
||||
|
@ -123,10 +120,6 @@ gboolean gimp_image_set_colormap_deprecated (gint32 image_id,
|
|||
const guchar *colormap,
|
||||
gint num_colors);
|
||||
|
||||
GimpMetadata * gimp_image_get_metadata_deprecated (gint32 image_id);
|
||||
gboolean gimp_image_set_metadata_deprecated (gint32 image_id,
|
||||
GimpMetadata *metadata);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in New Issue