mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
libgimp: GimpItem now also belong to libgimp.
This commit is contained in:
parent
d15388c8c9
commit
08849a584c
35 changed files with 270 additions and 401 deletions
|
@ -60,7 +60,8 @@ gimp_channel_init (GimpChannel *channel)
|
|||
* set with explicit procedure calls. The channel's contents are
|
||||
* undefined initially.
|
||||
*
|
||||
* Returns: The newly created channel.
|
||||
* Returns: (transfer none): The newly created channel.
|
||||
* The object belongs to libgimp and you should not free it.
|
||||
*/
|
||||
GimpChannel *
|
||||
gimp_channel_new (GimpImage *image,
|
||||
|
@ -112,14 +113,9 @@ gimp_channel_new_deprecated (gint32 image_id,
|
|||
const GimpRGB *color)
|
||||
{
|
||||
GimpChannel *channel;
|
||||
gint32 channel_id;
|
||||
|
||||
channel = gimp_channel_new (gimp_image_get_by_id (image_id),
|
||||
name, width, height,
|
||||
opacity, color);
|
||||
channel_id = gimp_item_get_id (GIMP_ITEM (channel));
|
||||
|
||||
g_object_unref (channel);
|
||||
|
||||
return channel_id;
|
||||
return gimp_item_get_id (GIMP_ITEM (channel));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue