mirror of https://github.com/GNOME/gimp.git
declare gp_params_destroy() in the private header file.
2005-12-14 Sven Neumann <sven@gimp.org> * libgimpbase/gimpprotocol.[ch]: declare gp_params_destroy() in the private header file. * libgimp/gimp.c (gimp_destroy_params): removed extern declaration.
This commit is contained in:
parent
4467e1cd4b
commit
4ec5642b50
|
@ -1,3 +1,10 @@
|
|||
2005-12-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpbase/gimpprotocol.[ch]: declare gp_params_destroy() in
|
||||
the private header file.
|
||||
|
||||
* libgimp/gimp.c (gimp_destroy_params): removed extern declaration.
|
||||
|
||||
2005-12-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpbase/gimpwire.[ch]: let the private wire methods live in
|
||||
|
|
|
@ -986,8 +986,6 @@ void
|
|||
gimp_destroy_params (GimpParam *params,
|
||||
gint n_params)
|
||||
{
|
||||
extern void gp_params_destroy (GPParam *params, gint n_params);
|
||||
|
||||
gp_params_destroy ((GPParam *) params, n_params);
|
||||
}
|
||||
|
||||
|
|
|
@ -133,10 +133,6 @@ static void _gp_params_write (GIOChannel *channel,
|
|||
gint nparams,
|
||||
gpointer user_data);
|
||||
|
||||
/* used by gimp.c:gimp_destroy_params() */
|
||||
void gp_params_destroy (GPParam *params,
|
||||
gint nparams);
|
||||
|
||||
static void _gp_has_init_read (GIOChannel *channel,
|
||||
GimpWireMessage *msg,
|
||||
gpointer user_data);
|
||||
|
@ -1746,8 +1742,7 @@ void
|
|||
gp_params_destroy (GPParam *params,
|
||||
gint nparams)
|
||||
{
|
||||
gint count;
|
||||
gint i, j;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < nparams; i++)
|
||||
{
|
||||
|
@ -1793,9 +1788,12 @@ gp_params_destroy (GPParam *params,
|
|||
case GIMP_PDB_STRINGARRAY:
|
||||
if ((i > 0) && (params[i-1].type == GIMP_PDB_INT32))
|
||||
{
|
||||
count = params[i-1].data.d_int32;
|
||||
gint count = params[i-1].data.d_int32;
|
||||
gint j;
|
||||
|
||||
for (j = 0; j < count; j++)
|
||||
g_free (params[i].data.d_stringarray[j]);
|
||||
|
||||
g_free (params[i].data.d_stringarray);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -228,6 +228,9 @@ gboolean gp_extension_ack_write (GIOChannel *channel,
|
|||
gboolean gp_has_init_write (GIOChannel *channel,
|
||||
gpointer user_data);
|
||||
|
||||
void gp_params_destroy (GPParam *params,
|
||||
gint nparams);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in New Issue