Revert "libgimp: API with new object classes are since 3.0."

This reverts commit e24375e64a.

The API is semantically the same, and there is no danger of confusion,
no need to update the Since: tags.
This commit is contained in:
Michael Natterer 2019-08-30 18:44:56 +02:00
parent cecd7e3aae
commit 2fd35e77b5
7 changed files with 27 additions and 67 deletions

View File

@ -66,8 +66,6 @@ gimp_channel_init (GimpChannel *channel)
*
* Returns: (transfer none): The newly created channel.
* The object belongs to libgimp and you should not free it.
*
* Since: 3.0
*/
GimpChannel *
gimp_channel_new (GimpImage *image,

View File

@ -188,7 +188,7 @@ gimp_display_get_by_id (gint32 display_id)
*
* Returns: Whether the display is valid.
*
* Since: 3.0
* Since: 2.4
**/
gboolean
gimp_display_is_valid (GimpDisplay *display)

View File

@ -64,8 +64,6 @@ gimp_drawable_init (GimpDrawable *drawable)
*
* Returns: (transfer full) (nullable): thumbnail data or %NULL if
* @drawable is invalid.
*
* Since: 3.0
**/
guchar *
gimp_drawable_get_thumbnail_data (GimpDrawable *drawable,
@ -106,7 +104,7 @@ gimp_drawable_get_thumbnail_data (GimpDrawable *drawable,
*
* Returns: (transfer full): a new #GdkPixbuf
*
* Since: 3.0
* Since: 2.2
**/
GdkPixbuf *
gimp_drawable_get_thumbnail (GimpDrawable *drawable,
@ -135,25 +133,6 @@ gimp_drawable_get_thumbnail (GimpDrawable *drawable,
return NULL;
}
/**
* gimp_drawable_get_sub_thumbnail_data:
* @drawable: 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: (inout): the requested thumbnail width (<= 1024 pixels)
* @dest_height: (inout): the requested thumbnail height (<= 1024 pixels)
* @bpp: (out): the bytes per pixel of the returned thumbnail 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.
*
* Since: 3.0
**/
guchar *
gimp_drawable_get_sub_thumbnail_data (GimpDrawable *drawable,
gint src_x,
@ -203,7 +182,7 @@ gimp_drawable_get_sub_thumbnail_data (GimpDrawable *drawable,
*
* Returns: (transfer full): a new #GdkPixbuf
*
* Since: 3.0
* Since: 2.2
**/
GdkPixbuf *
gimp_drawable_get_sub_thumbnail (GimpDrawable *drawable,
@ -255,7 +234,7 @@ gimp_drawable_get_sub_thumbnail (GimpDrawable *drawable,
*
* See Also: gimp_drawable_get_shadow_buffer()
*
* Since: 3.0
* Since: 2.10
*/
GeglBuffer *
gimp_drawable_get_buffer (GimpDrawable *drawable)
@ -288,7 +267,7 @@ gimp_drawable_get_buffer (GimpDrawable *drawable)
*
* See Also: gimp_drawable_get_shadow_buffer()
*
* Since: 3.0
* Since: 2.10
*/
GeglBuffer *
gimp_drawable_get_shadow_buffer (GimpDrawable *drawable)
@ -316,7 +295,7 @@ gimp_drawable_get_shadow_buffer (GimpDrawable *drawable)
*
* Returns: The #Babl format.
*
* Since: 3.0
* Since: 2.10
*/
const Babl *
gimp_drawable_get_format (GimpDrawable *drawable)
@ -394,7 +373,6 @@ gimp_drawable_get_format (GimpDrawable *drawable)
return format;
}
/**
* gimp_drawable_get_thumbnail_format:
* @drawable: the ID of the #GimpDrawable to get the thumbnail format for.
@ -403,7 +381,7 @@ gimp_drawable_get_format (GimpDrawable *drawable)
*
* Returns: The #Babl thumbnail format.
*
* Since: 3.0
* Since: 2.10.14
*/
const Babl *
gimp_drawable_get_thumbnail_format (GimpDrawable *drawable)

View File

@ -186,7 +186,7 @@ gimp_image_get_by_id (gint32 image_id)
*
* Returns: Whether the image is valid.
*
* Since: 3.0
* Since: 2.4
**/
gboolean
gimp_image_is_valid (GimpImage *image)
@ -275,8 +275,6 @@ gimp_list_images (void)
* The list of layers contained in the image.
* The returned array must be freed with g_free(). Layer
* elements belong to libgimp and must not be freed.
*
* Since: 3.0
**/
GimpLayer **
gimp_image_get_layers (GimpImage *image,
@ -315,8 +313,6 @@ gimp_image_get_layers (GimpImage *image,
* The list of channels contained in the image.
* The returned array must be freed with g_free(). Channel
* elements belong to libgimp and must not be freed.
*
* Since: 3.0
**/
GimpChannel **
gimp_image_get_channels (GimpImage *image,
@ -352,8 +348,6 @@ gimp_image_get_channels (GimpImage *image,
* The list of vectors contained in the image.
* The returned array must be freed with g_free(). Vectors
* elements belong to libgimp and must not be freed.
*
* Since: 3.0
**/
GimpVectors **
gimp_image_get_vectors (GimpImage *image,
@ -495,8 +489,6 @@ gimp_image_list_vectors (GimpImage *image)
* is not of base type INDEXED, this pointer will be NULL.
*
* Returns: The image's colormap.
*
* Since: 3.0
*/
guchar *
gimp_image_get_colormap (GimpImage *image,
@ -527,8 +519,6 @@ gimp_image_get_colormap (GimpImage *image,
* in the "cmap" array.
*
* Returns: TRUE on success.
*
* Since: 3.0
*/
gboolean
gimp_image_set_colormap (GimpImage *image,
@ -553,8 +543,6 @@ gimp_image_set_colormap (GimpImage *image,
* gives the number of bytes per pixel in the image.
*
* Returns: (transfer full): the thumbnail data.
*
* Since: 3.0
**/
guchar *
gimp_image_get_thumbnail_data (GimpImage *image,
@ -594,7 +582,7 @@ gimp_image_get_thumbnail_data (GimpImage *image,
*
* Returns: (transfer full): a new #GdkPixbuf
*
* Since: 3.0
* Since: 2.2
**/
GdkPixbuf *
gimp_image_get_thumbnail (GimpImage *image,
@ -633,7 +621,7 @@ gimp_image_get_thumbnail (GimpImage *image,
* Returns: (nullable) (transfer full): The exif/ptc/xmp metadata,
* or %NULL if there is none.
*
* Since: 3.0
* Since: 2.10
**/
GimpMetadata *
gimp_image_get_metadata (GimpImage *image)
@ -663,7 +651,7 @@ gimp_image_get_metadata (GimpImage *image)
*
* Returns: TRUE on success.
*
* Since: 3.0
* Since: 2.10
**/
gboolean
gimp_image_set_metadata (GimpImage *image,

View File

@ -218,7 +218,7 @@ gimp_item_get_by_id (gint32 item_id)
*
* Returns: Whether the item is valid.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_valid (GimpItem *item)
@ -236,7 +236,7 @@ gimp_item_is_valid (GimpItem *item)
*
* Returns: TRUE if the item is a drawable, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_drawable (GimpItem *item)
@ -254,7 +254,7 @@ gimp_item_is_drawable (GimpItem *item)
*
* Returns: TRUE if the item is a layer, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_layer (GimpItem *item)
@ -273,7 +273,7 @@ gimp_item_is_layer (GimpItem *item)
*
* Returns: TRUE if the item is a text layer, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_text_layer (GimpItem *item)
@ -291,7 +291,7 @@ gimp_item_is_text_layer (GimpItem *item)
*
* Returns: TRUE if the item is a channel, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_channel (GimpItem *item)
@ -310,7 +310,7 @@ gimp_item_is_channel (GimpItem *item)
*
* Returns: TRUE if the item is a layer mask, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_layer_mask (GimpItem *item)
@ -328,7 +328,7 @@ gimp_item_is_layer_mask (GimpItem *item)
*
* Returns: TRUE if the item is a selection, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_selection (GimpItem *item)
@ -346,7 +346,7 @@ gimp_item_is_selection (GimpItem *item)
*
* Returns: TRUE if the item is a vectors, FALSE otherwise.
*
* Since: 3.0
* Since: 2.8
**/
gboolean
gimp_item_is_vectors (GimpItem *item)
@ -368,8 +368,6 @@ gimp_item_is_vectors (GimpItem *item)
* The item's list of children.
* The returned array must be freed with g_free(). Item
* elements belong to libgimp and must not be unrefed.
*
* Since: 3.0
**/
GimpItem **
gimp_item_get_children (GimpItem *item,

View File

@ -136,7 +136,7 @@ gimp_layer_copy (GimpLayer *layer)
* Returns: (transfer none): The newly created layer.
* The object belongs to libgimp and you should not free it.
*
* Since: 3.0
* Since: 2.2
*/
GimpLayer *
gimp_layer_new_from_pixbuf (GimpImage *image,
@ -215,14 +215,14 @@ gimp_layer_new_from_pixbuf (GimpImage *image,
* Returns: (transfer none): The newly created layer.
* The object belongs to libgimp and you should not free it.
*
* Since: 3.0
* Since: 2.8
*/
GimpLayer *
gimp_layer_new_from_surface (GimpImage *image,
const gchar *name,
cairo_surface_t *surface,
gdouble progress_start,
gdouble progress_end)
gimp_layer_new_from_surface (GimpImage *image,
const gchar *name,
cairo_surface_t *surface,
gdouble progress_start,
gdouble progress_end)
{
GeglBuffer *src_buffer;
GeglBuffer *dest_buffer;
@ -278,7 +278,7 @@ gimp_layer_new_from_surface (GimpImage *image,
}
/* Deprecated API. */
/* Deprecate API. */
/**

View File

@ -62,8 +62,6 @@ gimp_selection_init (GimpSelection *selection)
* positioning of the new floating selection.
*
* Returns: (transfer none): The floated layer.
*
* Since: 3.0
*/
GimpLayer *
gimp_selection_float (GimpImage *image,