Commit bb72504e authored by Jehan's avatar Jehan

libgimp: change all non-generated API to use GimpImage.

We shouldn't pass as parameter nor return gint32 anymore.
parent 4db8cda2
......@@ -291,15 +291,15 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
{
GimpAspectPreviewPrivate *priv = GET_PRIVATE (preview);
GtkWidget *area = gimp_preview_get_area (preview);
GimpImage *image;
gint width;
gint height;
gint32 image_ID;
gimp_preview_get_size (preview, &width, &height);
image_ID = gimp_item_get_image (priv->drawable_ID);
image = gimp_item_get_image (priv->drawable_ID);
if (gimp_selection_is_empty (image_ID))
if (gimp_selection_is_empty (image))
{
gimp_preview_area_draw (GIMP_PREVIEW_AREA (area),
0, 0,
......@@ -316,7 +316,7 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
gint w, h;
gint bpp;
selection_ID = gimp_image_get_selection (image_ID);
selection_ID = gimp_image_get_selection (image);
w = width;
h = height;
......@@ -336,6 +336,7 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
g_free (sel);
g_free (src);
}
g_object_unref (image);
}
static void
......
......@@ -25,12 +25,12 @@
/**
* gimp_channel_new:
* @image_ID: The image to which to add the channel.
* @name: The channel name.
* @width: The channel width.
* @height: The channel height.
* @image: 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.
* @color: The channel compositing color.
*
* Create a new channel.
*
......@@ -45,14 +45,14 @@
* Returns: The newly created channel.
*/
gint32
gimp_channel_new (gint32 image_ID,
gimp_channel_new (GimpImage *image,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color)
{
return _gimp_channel_new (image_ID,
return _gimp_channel_new (image,
width,
height,
name,
......
......@@ -30,7 +30,7 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gint32 gimp_channel_new (gint32 image_ID,
gint32 gimp_channel_new (GimpImage *image,
const gchar *name,
guint width,
guint height,
......
......@@ -270,12 +270,12 @@ gimp_drawable_get_format (gint32 drawable_ID)
if (format_str)
{
gint32 image_ID = gimp_item_get_image (drawable_ID);
const Babl *space = NULL;
const Babl *space = NULL;
GimpImage *image = gimp_item_get_image (drawable_ID);
if (gimp_item_is_layer (drawable_ID))
{
GimpColorProfile *profile = gimp_image_get_color_profile (image_ID);
GimpColorProfile *profile = gimp_image_get_color_profile (image);
if (profile)
{
......@@ -313,7 +313,7 @@ gimp_drawable_get_format (gint32 drawable_ID)
else
format = palette;
colormap = gimp_image_get_colormap (image_ID, &n_colors);
colormap = gimp_image_get_colormap (image, &n_colors);
if (colormap)
{
......@@ -329,6 +329,7 @@ gimp_drawable_get_format (gint32 drawable_ID)
format = babl_format_with_space (format_str, space);
}
g_object_unref (image);
g_free (format_str);
}
......
......@@ -406,16 +406,16 @@ gimp_drawable_preview_draw_area (GimpDrawablePreview *preview,
GimpDrawablePreviewPrivate *priv = GET_PRIVATE (preview);
GimpPreview *gimp_preview = GIMP_PREVIEW (preview);
GtkWidget *area = gimp_preview_get_area (gimp_preview);
GimpImage *image;
gint xmin, ymin;
gint xoff, yoff;
gint32 image_ID;
gimp_preview_get_bounds (gimp_preview, &xmin, &ymin, NULL, NULL);
gimp_preview_get_offsets (gimp_preview, &xoff, &yoff);
image_ID = gimp_item_get_image (priv->drawable_ID);
image = gimp_item_get_image (priv->drawable_ID);
if (gimp_selection_is_empty (image_ID))
if (gimp_selection_is_empty (image))
{
gimp_preview_area_draw (GIMP_PREVIEW_AREA (area),
x - xoff - xmin,
......@@ -457,7 +457,7 @@ gimp_drawable_preview_draw_area (GimpDrawablePreview *preview,
s_w = draw_width;
s_h = draw_height;
selection_ID = gimp_image_get_selection (image_ID);
selection_ID = gimp_image_get_selection (image);
src = gimp_drawable_get_sub_thumbnail_data (priv->drawable_ID,
draw_x, draw_y,
......@@ -481,6 +481,7 @@ gimp_drawable_preview_draw_area (GimpDrawablePreview *preview,
default:
g_free (sel);
g_free (src);
g_object_unref (image);
return;
}
......@@ -501,6 +502,7 @@ gimp_drawable_preview_draw_area (GimpDrawablePreview *preview,
g_free (src);
}
}
g_object_unref (image);
}
static void
......@@ -538,14 +540,15 @@ gimp_drawable_preview_set_drawable_id (GimpDrawablePreview *drawable_preview,
if (gimp_drawable_is_indexed (drawable_ID))
{
guint32 image_ID = gimp_item_get_image (drawable_ID);
GtkWidget *area = gimp_preview_get_area (preview);
GimpImage *image = gimp_item_get_image (drawable_ID);
GtkWidget *area = gimp_preview_get_area (preview);
guchar *cmap;
gint num_colors;
cmap = gimp_image_get_colormap (image_ID, &num_colors);
cmap = gimp_image_get_colormap (image, &num_colors);
gimp_preview_area_set_colormap (GIMP_PREVIEW_AREA (area),
cmap, num_colors);
g_object_unref (image);
g_free (cmap);
}
}
......
......@@ -51,8 +51,8 @@
**/
typedef void (* ExportFunc) (gint32 imageID,
gint32 *drawable_ID);
typedef void (* ExportFunc) (GimpImage *image,
gint32 *drawable_ID);
/* the export action structure */
......@@ -69,8 +69,8 @@ typedef struct
/* the functions that do the actual export */
static void
export_merge (gint32 image_ID,
gint32 *drawable_ID)
export_merge (GimpImage *image,
gint32 *drawable_ID)
{
gint32 nlayers;
gint32 nvisible = 0;
......@@ -79,7 +79,7 @@ export_merge (gint32 image_ID,
gint32 merged;
gint32 transp;
layers = gimp_image_get_layers (image_ID, &nlayers);
layers = gimp_image_get_layers (image, &nlayers);
for (i = 0; i < nlayers; i++)
{
if (gimp_item_get_visible (layers[i]))
......@@ -93,13 +93,13 @@ export_merge (gint32 image_ID,
* merge that follows will ensure that the offset, opacity and
* size are correct
*/
transp = gimp_layer_new (image_ID, "-",
gimp_image_width (image_ID),
gimp_image_height (image_ID),
transp = gimp_layer_new (image, "-",
gimp_image_width (image),
gimp_image_height (image),
gimp_drawable_type (*drawable_ID) | 1,
100.0, GIMP_LAYER_MODE_NORMAL);
gimp_image_insert_layer (image_ID, transp, -1, 1);
gimp_selection_none (image_ID);
gimp_image_insert_layer (image, transp, -1, 1);
gimp_selection_none (image);
gimp_drawable_edit_clear (transp);
nvisible++;
}
......@@ -107,25 +107,25 @@ export_merge (gint32 image_ID,
if (nvisible > 1)
{
g_free (layers);
merged = gimp_image_merge_visible_layers (image_ID, GIMP_CLIP_TO_IMAGE);
merged = gimp_image_merge_visible_layers (image, GIMP_CLIP_TO_IMAGE);
if (merged != -1)
*drawable_ID = merged;
else
return; /* shouldn't happen */
layers = gimp_image_get_layers (image_ID, &nlayers);
layers = gimp_image_get_layers (image, &nlayers);
/* make sure that the merged drawable matches the image size */
if (gimp_drawable_width (merged) != gimp_image_width (image_ID) ||
gimp_drawable_height (merged) != gimp_image_height (image_ID))
if (gimp_drawable_width (merged) != gimp_image_width (image) ||
gimp_drawable_height (merged) != gimp_image_height (image))
{
gint off_x, off_y;
gimp_drawable_offsets (merged, &off_x, &off_y);
gimp_layer_resize (merged,
gimp_image_width (image_ID),
gimp_image_height (image_ID),
gimp_image_width (image),
gimp_image_height (image),
off_x, off_y);
}
}
......@@ -134,32 +134,32 @@ export_merge (gint32 image_ID,
for (i = 0; i < nlayers; i++)
{
if (layers[i] != *drawable_ID)
gimp_image_remove_layer (image_ID, layers[i]);
gimp_image_remove_layer (image, layers[i]);
}
g_free (layers);
}
static void
export_flatten (gint32 image_ID,
gint32 *drawable_ID)
export_flatten (GimpImage *image,
gint32 *drawable_ID)
{
gint32 flattened;
flattened = gimp_image_flatten (image_ID);
flattened = gimp_image_flatten (image);
if (flattened != -1)
*drawable_ID = flattened;
}
static void
export_remove_alpha (gint32 image_ID,
gint32 *drawable_ID)
export_remove_alpha (GimpImage *image,
gint32 *drawable_ID)
{
gint32 n_layers;
gint32 *layers;
gint i;
layers = gimp_image_get_layers (image_ID, &n_layers);
layers = gimp_image_get_layers (image, &n_layers);
for (i = 0; i < n_layers; i++)
{
......@@ -171,14 +171,14 @@ export_remove_alpha (gint32 image_ID,
}
static void
export_apply_masks (gint32 image_ID,
gint *drawable_ID)
export_apply_masks (GimpImage *image,
gint *drawable_ID)
{
gint32 n_layers;
gint32 *layers;
gint i;
layers = gimp_image_get_layers (image_ID, &n_layers);
layers = gimp_image_get_layers (image, &n_layers);
for (i = 0; i < n_layers; i++)
{
......@@ -190,61 +190,61 @@ export_apply_masks (gint32 image_ID,
}
static void
export_convert_rgb (gint32 image_ID,
gint32 *drawable_ID)
export_convert_rgb (GimpImage *image,
gint32 *drawable_ID)
{
gimp_image_convert_rgb (image_ID);
gimp_image_convert_rgb (image);
}
static void
export_convert_grayscale (gint32 image_ID,
gint32 *drawable_ID)
export_convert_grayscale (GimpImage *image,
gint32 *drawable_ID)
{
gimp_image_convert_grayscale (image_ID);
gimp_image_convert_grayscale (image);
}
static void
export_convert_indexed (gint32 image_ID,
gint32 *drawable_ID)
export_convert_indexed (GimpImage *image,
gint32 *drawable_ID)
{
gint32 nlayers;
/* check alpha */
g_free (gimp_image_get_layers (image_ID, &nlayers));
g_free (gimp_image_get_layers (image, &nlayers));
if (nlayers > 1 || gimp_drawable_has_alpha (*drawable_ID))
gimp_image_convert_indexed (image_ID,
gimp_image_convert_indexed (image,
GIMP_CONVERT_DITHER_NONE,
GIMP_CONVERT_PALETTE_GENERATE,
255, FALSE, FALSE, "");
else
gimp_image_convert_indexed (image_ID,
gimp_image_convert_indexed (image,
GIMP_CONVERT_DITHER_NONE,
GIMP_CONVERT_PALETTE_GENERATE,
256, FALSE, FALSE, "");
}
static void
export_convert_bitmap (gint32 image_ID,
gint32 *drawable_ID)
export_convert_bitmap (GimpImage *image,
gint32 *drawable_ID)
{
if (gimp_image_base_type (image_ID) == GIMP_INDEXED)
gimp_image_convert_rgb (image_ID);
if (gimp_image_base_type (image) == GIMP_INDEXED)
gimp_image_convert_rgb (image);
gimp_image_convert_indexed (image_ID,
gimp_image_convert_indexed (image,
GIMP_CONVERT_DITHER_FS,
GIMP_CONVERT_PALETTE_GENERATE,
2, FALSE, FALSE, "");
}
static void
export_add_alpha (gint32 image_ID,
gint32 *drawable_ID)
export_add_alpha (GimpImage *image,
gint32 *drawable_ID)
{
gint32 nlayers;
gint32 i;
gint32 *layers;
layers = gimp_image_get_layers (image_ID, &nlayers);
layers = gimp_image_get_layers (image, &nlayers);
for (i = 0; i < nlayers; i++)
{
if (!gimp_drawable_has_alpha (layers[i]))
......@@ -254,8 +254,8 @@ export_add_alpha (gint32 image_ID,
}
static void
export_void (gint32 image_ID,
gint32 *drawable_ID)
export_void (GimpImage *image,
gint32 *drawable_ID)
{
/* do nothing */
}
......@@ -431,10 +431,10 @@ export_action_get_func (const ExportAction *action)
static void
export_action_perform (const ExportAction *action,
gint32 image_ID,
GimpImage *image,
gint32 *drawable_ID)
{
export_action_get_func (action) (image_ID, drawable_ID);
export_action_get_func (action) (image, drawable_ID);
}
......@@ -694,9 +694,9 @@ export_dialog (GSList *actions,
/**
* gimp_export_image:
* @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).
* @image: Pointer to the image.
* @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
......@@ -706,16 +706,16 @@ export_dialog (GSList *actions,
* 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, the image_ID 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.
* 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, the image_ID
* and drawable_ID is 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 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
......@@ -724,7 +724,7 @@ export_dialog (GSList *actions,
* Returns: An enum of #GimpExportReturn describing the user_action.
**/
GimpExportReturn
gimp_export_image (gint32 *image_ID,
gimp_export_image (GimpImage **image,
gint32 *drawable_ID,
const gchar *format_name,
GimpExportCapabilities capabilities)
......@@ -740,7 +740,7 @@ gimp_export_image (gint32 *image_ID,
gboolean background_has_alpha = TRUE;
GimpExportReturn retval = GIMP_EXPORT_CANCEL;
g_return_val_if_fail (*image_ID > -1 && *drawable_ID > -1, FALSE);
g_return_val_if_fail (gimp_image_is_valid (*image) && *drawable_ID > -1, FALSE);
/* do some sanity checks */
if (capabilities & GIMP_EXPORT_NEEDS_ALPHA)
......@@ -785,7 +785,7 @@ gimp_export_image (gint32 *image_ID,
/* check alpha and layer masks */
layers = gimp_image_get_layers (*image_ID, &n_layers);
layers = gimp_image_get_layers (*image, &n_layers);
for (i = 0; i < n_layers; i++)
{
......@@ -850,9 +850,9 @@ gimp_export_image (gint32 *image_ID,
gimp_drawable_offsets (*drawable_ID, &offset_x, &offset_y);
if ((gimp_layer_get_opacity (*drawable_ID) < 100.0) ||
(gimp_image_width (*image_ID) !=
(gimp_image_width (*image) !=
gimp_drawable_width (*drawable_ID)) ||
(gimp_image_height (*image_ID) !=
(gimp_image_height (*image) !=
gimp_drawable_height (*drawable_ID)) ||
offset_x || offset_y)
{
......@@ -916,7 +916,7 @@ gimp_export_image (gint32 *image_ID,
g_free (layers);
/* check the image type */
type = gimp_image_base_type (*image_ID);
type = gimp_image_base_type (*image);
switch (type)
{
case GIMP_RGB:
......@@ -974,7 +974,7 @@ gimp_export_image (gint32 *image_ID,
{
gint n_colors;
g_free (gimp_image_get_colormap (*image_ID, &n_colors));
g_free (gimp_image_get_colormap (*image, &n_colors));
if (n_colors > 2)
actions = g_slist_prepend (actions,
......@@ -1002,14 +1002,14 @@ gimp_export_image (gint32 *image_ID,
{
GSList *list;
*image_ID = gimp_image_duplicate (*image_ID);
*drawable_ID = gimp_image_get_active_layer (*image_ID);
*image = gimp_image_duplicate (*image);
*drawable_ID = gimp_image_get_active_layer (*image);
gimp_image_undo_disable (*image_ID);
gimp_image_undo_disable (*image);
for (list = actions; list; list = list->next)
{
export_action_perform (list->data, *image_ID, drawable_ID);
export_action_perform (list->data, *image, drawable_ID);
}
}
......
......@@ -75,7 +75,7 @@ typedef enum
} GimpExportReturn;
GimpExportReturn gimp_export_image (gint32 *image_ID,
GimpExportReturn gimp_export_image (GimpImage **image,
gint32 *drawable_ID,
const gchar *format_name,
GimpExportCapabilities capabilities);
......
......@@ -136,7 +136,7 @@ gimp_image_get_id (GimpImage *image)
/**
* gimp_image_get_colormap:
* @image_ID: The image.
* @image: The image.
* @num_colors: Returns the number of colors in the colormap array.
*
* Returns the image's colormap
......@@ -148,13 +148,13 @@ gimp_image_get_id (GimpImage *image)
* Returns: The image's colormap.
*/
guchar *
gimp_image_get_colormap (gint32 image_ID,
gint *num_colors)
gimp_image_get_colormap (GimpImage *image,
gint *num_colors)
{
gint num_bytes;
guchar *cmap;
cmap = _gimp_image_get_colormap (image_ID, &num_bytes);
cmap = _gimp_image_get_colormap (image, &num_bytes);
if (num_colors)
*num_colors = num_bytes / 3;
......@@ -164,7 +164,7 @@ gimp_image_get_colormap (gint32 image_ID,
/**
* gimp_image_set_colormap:
* @image_ID: The image.
* @image: The image.
* @colormap: The new colormap values.
* @num_colors: Number of colors in the colormap array.
*
......@@ -178,19 +178,19 @@ gimp_image_get_colormap (gint32 image_ID,
* Returns: TRUE on success.
*/
gboolean
gimp_image_set_colormap (gint32 image_ID,
gimp_image_set_colormap (GimpImage *image,
const guchar *colormap,
gint num_colors)
{
return _gimp_image_set_colormap (image_ID, num_colors * 3, colormap);
return _gimp_image_set_colormap (image, num_colors * 3, colormap);
}
/**
* gimp_image_get_thumbnail_data:
* @image_ID: The image.
* @width: (inout): The requested thumbnail width.
* @height: (inout): The requested thumbnail height.
* @bpp: (out): The previews bpp.
* @image: 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.
*
......@@ -202,17 +202,17 @@ gimp_image_set_colormap (gint32 image_ID,
* Returns: (transfer full): the thumbnail data.
**/
guchar *
gimp_image_get_thumbnail_data (gint32 image_ID,
gint *width,
gint *height,
gint *bpp)
gimp_image_get_thumbnail_data (GimpImage *image,
gint *width,
gint *height,
gint *bpp)
{
gint ret_width;
gint ret_height;
guchar *image_data;
gint data_size;
_gimp_image_thumbnail (image_ID,
_gimp_image_thumbnail (image,
*width,
*height,
&ret_width,
......@@ -229,12 +229,12 @@ gimp_image_get_thumbnail_data (gint32 image_ID,
/**
* gimp_image_get_thumbnail:
* @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
* @image: 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_ID.
* 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
......@@ -242,7 +242,7 @@ gimp_image_get_thumbnail_data (gint32 image_ID,
* Since: 2.2
**/
GdkPixbuf *
gimp_image_get_thumbnail (gint32 image_ID,
gimp_image_get_thumbnail (GimpImage *image,
gint width,
gint height,
GimpPixbufTransparency alpha)
......@@ -255,7 +255,7 @@ gimp_image_get_thumbnail (gint32 image_ID,
g_return_val_if_fail (width > 0 && width <= 1024, NULL);
g_return_val_if_fail (height > 0 && height <= 1024, NULL);
data = gimp_image_get_thumbnail_data (image_ID,
data = gimp_image_get_thumbnail_data (image,
&thumb_width,
&thumb_height,
&thumb_bpp);
......@@ -269,7 +269,7 @@ gimp_image_get_thumbnail (gint32 image_ID,
/**
* gimp_image_get_metadata:
* @image_ID: The image.
* @image: The image.
*
* Returns the image's metadata.
*
......@@ -281,12 +281,12 @@ gimp_image_get_thumbnail (gint32 image_ID,
* Since: 2.10
**/
GimpMetadata *
gimp_image_get_metadata (gint32 image_ID)
gimp_image_get_metadata (GimpImage *image)
{
GimpMetadata *metadata = NULL;
gchar *metadata_string;
metadata_string = _gimp_image_get_metadata (image_ID);
metadata_string = _gimp_image_get_metadata (image);
if (metadata_string)
{
metadata = gimp_metadata_deserialize (metadata_string);
......@@ -298,7 +298,7 @@ gimp_image_get_metadata (gint32 image_ID)
/**
* gimp_image_set_metadata:
* @image_ID: The image.
* @image: The image.
* @metadata: The exif/ptc/xmp metadata.
*
* Set the image's metadata.
......@@ -311,7 +311,7 @@ gimp_image_get_metadata (gint32 image_ID)
* Since: 2.10
**/
gboolean
gimp_image_set_metadata (gint32 image_ID,
gimp_image_set_metadata (GimpImage *image,
GimpMetadata *metadata)
{
gchar *metadata_string = NULL;
......@@ -320,7 +320,7 @@ gimp_image_set_metadata (gint32 image_ID,
if (metadata)
metadata_string = gimp_metadata_serialize (metadata);
success = _gimp_image_set_metadata (image_ID, metadata_string);
success = _gimp_image_set_metadata (image, metadata_string);
if (metadata_string)
g_free (metadata_string);
......
......@@ -67,23 +67,23 @@ GType gimp_image_get_type (void) G_GNUC_CONST;
gint32 gimp_image_get_id (GimpImage *image);
guchar * gimp_image_get_colormap (gint32 image_ID,
guchar * gimp_image_get_colormap (GimpImage *image,
gint *num_colors);
gboolean gimp_image_set_colormap (gint32 image_ID,
gboolean gimp_image_set_colormap (GimpImage *image,
const guchar *colormap,
gint num_colors);
guchar * gimp_image_get_thumbnail_data (gint32 image_ID,
guchar * gimp_image_get_thumbnail_data (GimpImage *image,
gint *width,
gint *height,
gint *bpp);
GdkPixbuf * gimp_image_get_thumbnail (gint32 image_ID,
GdkPixbuf * gimp_image_get_thumbnail (GimpImage *image,
gint width,
gint height,
GimpPixbufTransparency alpha);
GimpMetadata * gimp_image_get_metadata (gint32 image_ID);
gboolean gimp_image_set_metadata (gint32 image_ID,
GimpMetadata * gimp_image_get_metadata (GimpImage *image);
gboolean gimp_image_set_metadata (GimpImage *image,
GimpMetadata *metadata);
......
......@@ -25,7 +25,7 @@
/**
* gimp_image_get_color_profile:
* @image_ID: The image.
* @image: The image.
*
* Returns the image's color profile
*
......@@ -38,12 +38,12 @@
* Since: 2.10
**/
GimpColorProfile *
gimp_image_get_color_profile (gint32 image_ID)
gimp_image_get_color_profile (GimpImage *image)
{