Commit a109f0ff authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

removed the "palette" PDB type again. Incremented protocol version.

2001-11-09  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpprotocol.[ch]: removed the "palette" PDB type
	again. Incremented protocol version.

	* app/plug_in.c
	* app/pdb/procedural_db.c
	* libgimp/gimp.c
	* libgimpbase/gimpbasetypes.h: changed accordingly.

	* app/pdb/procedural_db_cmds.c
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
parent 4fa25532
2001-11-09 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpprotocol.[ch]: removed the "palette" PDB type
again. Incremented protocol version.
* app/plug_in.c
* app/pdb/procedural_db.c
* libgimp/gimp.c
* libgimpbase/gimpbasetypes.h: changed accordingly.
* app/pdb/procedural_db_cmds.c
* plug-ins/script-fu/script-fu-constants.c
* tools/pdbgen/enums.pl: regenerated.
2001-11-09 Michael Natterer <mitch@gimp.org>
* app/undo.c: should set the fs.backing_store TileManager pointer
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -291,8 +291,6 @@ procedural_db_run_proc (Gimp *gimp,
case GIMP_PDB_STATUS:
params[i].value.pdb_int = (gint32) va_arg (args, gint);
break;
case GIMP_PDB_PALETTE:
params[i].value.pdb_pointer = va_arg (args, gpointer);
case GIMP_PDB_END:
break;
}
......@@ -386,7 +384,6 @@ procedural_db_destroy_args (Argument *args,
case GIMP_PDB_PATH:
case GIMP_PDB_PARASITE:
case GIMP_PDB_STATUS:
case GIMP_PDB_PALETTE:
case GIMP_PDB_END:
break;
}
......
......@@ -291,8 +291,6 @@ procedural_db_run_proc (Gimp *gimp,
case GIMP_PDB_STATUS:
params[i].value.pdb_int = (gint32) va_arg (args, gint);
break;
case GIMP_PDB_PALETTE:
params[i].value.pdb_pointer = va_arg (args, gpointer);
case GIMP_PDB_END:
break;
}
......@@ -386,7 +384,6 @@ procedural_db_destroy_args (Argument *args,
case GIMP_PDB_PATH:
case GIMP_PDB_PARASITE:
case GIMP_PDB_STATUS:
case GIMP_PDB_PALETTE:
case GIMP_PDB_END:
break;
}
......
......@@ -291,8 +291,6 @@ procedural_db_run_proc (Gimp *gimp,
case GIMP_PDB_STATUS:
params[i].value.pdb_int = (gint32) va_arg (args, gint);
break;
case GIMP_PDB_PALETTE:
params[i].value.pdb_pointer = va_arg (args, gpointer);
case GIMP_PDB_END:
break;
}
......@@ -386,7 +384,6 @@ procedural_db_destroy_args (Argument *args,
case GIMP_PDB_PATH:
case GIMP_PDB_PARASITE:
case GIMP_PDB_STATUS:
case GIMP_PDB_PALETTE:
case GIMP_PDB_END:
break;
}
......
......@@ -291,8 +291,6 @@ procedural_db_run_proc (Gimp *gimp,
case GIMP_PDB_STATUS:
params[i].value.pdb_int = (gint32) va_arg (args, gint);
break;
case GIMP_PDB_PALETTE:
params[i].value.pdb_pointer = va_arg (args, gpointer);
case GIMP_PDB_END:
break;
}
......@@ -386,7 +384,6 @@ procedural_db_destroy_args (Argument *args,
case GIMP_PDB_PATH:
case GIMP_PDB_PARASITE:
case GIMP_PDB_STATUS:
case GIMP_PDB_PALETTE:
case GIMP_PDB_END:
break;
}
......
......@@ -103,7 +103,6 @@ static const gchar * const type_str[] =
"GIMP_PDB_BOUNDARY",
"GIMP_PDB_PATH",
"GIMP_PDB_PARASITE",
"GIMP_PDB_PALETTE",
"GIMP_PDB_STATUS",
"GIMP_PDB_END"
};
......@@ -630,7 +629,7 @@ static ProcArg procedural_db_proc_arg_outargs[] =
{
GIMP_PDB_INT32,
"arg_type",
"The type of argument { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_PALETTE (21), PDB_STATUS (22) }"
"The type of argument { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }"
},
{
GIMP_PDB_STRING,
......@@ -717,7 +716,7 @@ static ProcArg procedural_db_proc_val_outargs[] =
{
GIMP_PDB_INT32,
"val_type",
"The type of return value { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_PALETTE (21), PDB_STATUS (22) }"
"The type of return value { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }"
},
{
GIMP_PDB_STRING,
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data.d_status;
break;
......@@ -3336,8 +3334,6 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite));
}
break;
case GIMP_PDB_PALETTE:
params[i].data.d_palette = args[i].value.pdb_int;
case GIMP_PDB_STATUS:
params[i].data.d_status = args[i].value.pdb_int;
break;
......@@ -3410,14 +3406,13 @@ plug_in_params_destroy (GPParam *params,
case GIMP_PDB_PARASITE:
if (full_destroy)
if (params[i].data.d_parasite.data)
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
params[i].data.d_parasite.name = 0;
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3499,7 +3494,6 @@ plug_in_args_destroy (Argument *args,
args[i].value.pdb_pointer = NULL;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......
......@@ -3154,8 +3154,6 @@ plug_in_params_to_args (GPParam *params,
else
args[i].value.pdb_pointer = (gpointer) &(params[i].data.d_parasite);
break;
case GIMP_PDB_PALETTE:
args[i].value.pdb_int = params[i].data.d_palette;
case GIMP_PDB_STATUS:
args[i].value.pdb_int = params[i].data