mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
export the tattoo functions to the plug-ins
1998-11-07 Jay Cox <jaycox@earthlink.net> * libgimp/{gimp.h, gimpchannel.c, gimpdrawable.c, gimplayer.c}: export the tattoo functions to the plug-ins * libimp/gserialize.c, libimp/gserialize.h: new files for serializing structures * main.c: test the gserialize functions * gimpsignal.h: declare gimp_sigtype_* as extern
This commit is contained in:
parent
d8e4db64de
commit
de2c3f4813
13 changed files with 519 additions and 6 deletions
|
@ -302,3 +302,25 @@ gimp_channel_set_show_masked (gint32 channel_ID,
|
|||
|
||||
gimp_destroy_params (return_vals, nreturn_vals);
|
||||
}
|
||||
|
||||
gint32
|
||||
gimp_channel_get_tattoo (gint32 channel_ID)
|
||||
{
|
||||
GParam *return_vals;
|
||||
int nreturn_vals;
|
||||
int tattoo;
|
||||
|
||||
return_vals = gimp_run_procedure ("gimp_channel_get_tattoo",
|
||||
&nreturn_vals,
|
||||
PARAM_CHANNEL, channel_ID,
|
||||
PARAM_END);
|
||||
|
||||
tattoo = -1;
|
||||
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
||||
tattoo = return_vals[1].data.d_int32;
|
||||
|
||||
gimp_destroy_params (return_vals, nreturn_vals);
|
||||
|
||||
return tattoo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue