Commit 6ffaf731 authored by Nate Summers's avatar Nate Summers

app/plug_in.c libgimp/gimp.c libgimpbase/gimpbasetypes.h


 	* app/plug_in.c
 	* libgimp/gimp.c
	* libgimpbase/gimpbasetypes.h
 	* libgimpbase/gimpprotocol.c
 	* libgimpbase/gimpprotocol.h
 	* tools/pdbgen/pdb/palette.pdb: added preliminary pdb support to
 	manipulate palettes.  Incremented plugin interface version number.

 	* app/pdb/internal_procs.c
 	* app/pdb/palette_cmds.c
 	* app/pdb/procedural_db.c
	* app/pdb/procedural_db_cmds.c
	* libgimp/gimppalette_pdb.c
	* libgimp/gimppalette_pdb.h
 	* plug-ins/script-fu/script-fu-constants.c
 	* tools/pdbgen/enums.pl: regenerated
parent ce767014
......@@ -3154,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ 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;
......@@ -3413,6 +3417,7 @@ plug_in_params_destroy (GPParam *params,
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3494,6 +3499,7 @@ 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,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ 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;
......@@ -3413,6 +3417,7 @@ plug_in_params_destroy (GPParam *params,
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3494,6 +3499,7 @@ 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,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ 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;
......@@ -3413,6 +3417,7 @@ plug_in_params_destroy (GPParam *params,
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3494,6 +3499,7 @@ 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,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ 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;
......@@ -3413,6 +3417,7 @@ plug_in_params_destroy (GPParam *params,
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3494,6 +3499,7 @@ 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,6 +291,8 @@ 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;
}
......@@ -384,6 +386,7 @@ 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,6 +291,8 @@ 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;
}
......@@ -384,6 +386,7 @@ 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,6 +291,8 @@ 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;
}
......@@ -384,6 +386,7 @@ 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;
}
......
......@@ -63,7 +63,7 @@ void register_tools_procs (Gimp *gimp);
void register_undo_procs (Gimp *gimp);
void register_unit_procs (Gimp *gimp);
/* 326 procedures registered total */
/* 330 procedures registered total */
void
internal_procs_init (Gimp *gimp,
......@@ -78,94 +78,94 @@ internal_procs_init (Gimp *gimp,
(* status_callback) (NULL, _("Brushes"), 0.009);
register_brushes_procs (gimp);
(* status_callback) (NULL, _("Channel"), 0.043);
(* status_callback) (NULL, _("Channel"), 0.042);
register_channel_procs (gimp);
(* status_callback) (NULL, _("Color"), 0.092);
(* status_callback) (NULL, _("Color"), 0.091);
register_color_procs (gimp);
(* status_callback) (NULL, _("Convert"), 0.129);
(* status_callback) (NULL, _("Convert"), 0.127);
register_convert_procs (gimp);
(* status_callback) (NULL, _("GimpDisplay procedures"), 0.138);
(* status_callback) (NULL, _("GimpDisplay procedures"), 0.136);
register_display_procs (gimp);
(* status_callback) (NULL, _("Drawable procedures"), 0.147);
(* status_callback) (NULL, _("Drawable procedures"), 0.145);
register_drawable_procs (gimp);
(* status_callback) (NULL, _("Edit procedures"), 0.218);
(* status_callback) (NULL, _("Edit procedures"), 0.215);
register_edit_procs (gimp);
(* status_callback) (NULL, _("File Operations"), 0.236);
(* status_callback) (NULL, _("File Operations"), 0.233);
register_fileops_procs (gimp);
(* status_callback) (NULL, _("Floating selections"), 0.261);
(* status_callback) (NULL, _("Floating selections"), 0.258);
register_floating_sel_procs (gimp);
(* status_callback) (NULL, _("Gimprc procedures"), 0.279);
(* status_callback) (NULL, _("Gimprc procedures"), 0.276);
register_gimprc_procs (gimp);
(* status_callback) (NULL, _("Gradients"), 0.291);
(* status_callback) (NULL, _("Gradients"), 0.288);
register_gradients_procs (gimp);
(* status_callback) (NULL, _("Gradient UI"), 0.31);
(* status_callback) (NULL, _("Gradient UI"), 0.306);
register_gradient_select_procs (gimp);
(* status_callback) (NULL, _("Guide procedures"), 0.319);
(* status_callback) (NULL, _("Guide procedures"), 0.315);
register_guides_procs (gimp);
(* status_callback) (NULL, _("Help procedures"), 0.337);
(* status_callback) (NULL, _("Help procedures"), 0.333);
register_help_procs (gimp);
(* status_callback) (NULL, _("Image"), 0.34);
(* status_callback) (NULL, _("Image"), 0.336);
register_image_procs (gimp);
(* status_callback) (NULL, _("Layer"), 0.528);
(* status_callback) (NULL, _("Layer"), 0.521);
register_layer_procs (gimp);
(* status_callback) (NULL, _("Interface"), 0.623);
(* status_callback) (NULL, _("Interface"), 0.615);
register_message_procs (gimp);
(* status_callback) (NULL, _("Miscellaneous"), 0.632);
(* status_callback) (NULL, _("Miscellaneous"), 0.624);
register_misc_procs (gimp);
(* status_callback) (NULL, _("Palette"), 0.638);
(* status_callback) (NULL, _("Palette"), 0.63);
register_palette_procs (gimp);
(* status_callback) (NULL, _("Parasite procedures"), 0.66);
(* status_callback) (NULL, _("Parasite procedures"), 0.664);
register_parasite_procs (gimp);
(* status_callback) (NULL, _("Paths"), 0.696);
(* status_callback) (NULL, _("Paths"), 0.7);
register_paths_procs (gimp);
(* status_callback) (NULL, _("Pattern UI"), 0.736);
(* status_callback) (NULL, _("Pattern UI"), 0.739);
register_pattern_select_procs (gimp);
(* status_callback) (NULL, _("Patterns"), 0.745);
(* status_callback) (NULL, _("Patterns"), 0.748);
register_patterns_procs (gimp);
(* status_callback) (NULL, _("Plug-in"), 0.758);
(* status_callback) (NULL, _("Plug-in"), 0.761);
register_plug_in_procs (gimp);
(* status_callback) (NULL, _("Procedural database"), 0.776);
(* status_callback) (NULL, _("Procedural database"), 0.779);
register_procedural_db_procs (gimp);
(* status_callback) (NULL, _("Image mask"), 0.801);
(* status_callback) (NULL, _("Image mask"), 0.803);
register_selection_procs (gimp);
(* status_callback) (NULL, _("Selection Tool procedures"), 0.856);
(* status_callback) (NULL, _("Selection Tool procedures"), 0.858);
register_selection_tools_procs (gimp);
(* status_callback) (NULL, _("Text procedures"), 0.871);
(* status_callback) (NULL, _("Text procedures"), 0.873);
register_text_tool_procs (gimp);
(* status_callback) (NULL, _("Tool procedures"), 0.883);
(* status_callback) (NULL, _("Tool procedures"), 0.885);
register_tools_procs (gimp);
(* status_callback) (NULL, _("Undo"), 0.957);
(* status_callback) (NULL, _("Undo"), 0.958);
register_undo_procs (gimp);
(* status_callback) (NULL, _("Units"), 0.963);
(* status_callback) (NULL, _("Units"), 0.964);
register_unit_procs (gimp);
}
......@@ -31,6 +31,8 @@
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpdatafactory.h"
#include "core/gimplist.h"
#include "core/gimppalette.h"
#include "libgimpcolor/gimpcolor.h"
......@@ -41,6 +43,10 @@ static ProcRecord palette_set_background_proc;
static ProcRecord palette_set_default_colors_proc;
static ProcRecord palette_swap_colors_proc;
static ProcRecord palette_refresh_proc;
static ProcRecord palette_list_proc;
static ProcRecord palette_get_palette_proc;
static ProcRecord palette_set_palette_proc;
static ProcRecord palette_get_entry_proc;
void
register_palette_procs (Gimp *gimp)
......@@ -52,6 +58,10 @@ register_palette_procs (Gimp *gimp)
procedural_db_register (gimp, &palette_set_default_colors_proc);
procedural_db_register (gimp, &palette_swap_colors_proc);
procedural_db_register (gimp, &palette_refresh_proc);
procedural_db_register (gimp, &palette_list_proc);
procedural_db_register (gimp, &palette_get_palette_proc);
procedural_db_register (gimp, &palette_set_palette_proc);
procedural_db_register (gimp, &palette_get_entry_proc);
}
static Argument *
......@@ -293,3 +303,241 @@ static ProcRecord palette_refresh_proc =
NULL,
{ { palette_refresh_invoker } }
};
static Argument *
palette_list_invoker (Gimp *gimp,
Argument *args)
{
gboolean success = TRUE;
Argument *return_args;
gchar **palettes;
GList *list = NULL;
gint i = 0;
palettes = g_new (gchar *, gimp->palette_factory->container->num_children);
success = ((list = GIMP_LIST (gimp->palette_factory->container)->list) != NULL);
while (list)
{
palettes[i++] = g_strdup (GIMP_OBJECT (list->data)->name);
list = list->next;
}
return_args = procedural_db_return_args (&palette_list_proc, success);
if (success)
{
return_args[1].value.pdb_int = gimp->palette_factory->container->num_children;
return_args[2].value.pdb_pointer = palettes;
}
return return_args;
}
static ProcArg palette_list_outargs[] =
{
{
GIMP_PDB_INT32,
"num_palettes",
"The number of palettes in the list"
},
{
GIMP_PDB_STRINGARRAY,
"palette_list",
"The list of palette names"
}
};
static ProcRecord palette_list_proc =
{
"gimp_palette_list",
"Retrieves a list of all of the available patterns",
"This procedure returns a complete listing of available palettes. Each name returned can be used as input to the command 'gimp_palette_set_palette'.",
"Nathan Summers <rock@gimp.org>",
"Nathan Summers",
"2001",
GIMP_INTERNAL,
0,
NULL,
2,
palette_list_outargs,
{ { palette_list_invoker } }
};
static Argument *
palette_get_palette_invoker (Gimp *gimp,
Argument *args)
{
gboolean success = TRUE;
Argument *return_args;
GimpPalette *palette;
success = (palette = gimp_context_get_palette (gimp_get_current_context (gimp))) != NULL;
return_args = procedural_db_return_args (&palette_get_palette_proc, success);
if (success)
{
return_args[1].value.pdb_pointer = g_strdup (GIMP_OBJECT (palette)->name);
return_args[2].value.pdb_int = palette->n_colors;
}
return return_args;
}
static ProcArg palette_get_palette_outargs[] =
{
{
GIMP_PDB_STRING,
"name",
"The palette name"
},
{
GIMP_PDB_INT32,
"num_colors",
"The palette num_colors"
}
};
static ProcRecord palette_get_palette_proc =
{
"gimp_palette_get_palette",
"Retrieve information about the currently active palette.",
"This procedure retrieves information about the currently active palette. This includes the name, and the number of colors.",
"Nathan Summers <rock@gimp.org>",
"Nathan Summers",
"2001",
GIMP_INTERNAL,
0,
NULL,
2,
palette_get_palette_outargs,
{ { palette_get_palette_invoker } }
};
static Argument *
palette_set_palette_invoker (Gimp *gimp,
Argument *args)
{
gboolean success = TRUE;
gchar *name;
GimpPalette *palette;
GList *list;
name = (gchar *) args[0].value.pdb_pointer;
if (name == NULL)
success = FALSE;
if (success)
{
success = FALSE;
for (list = GIMP_LIST (gimp->palette_factory->container)->list;
list;
list = g_list_next (list))
{
palette = (GimpPalette *) list->data;
if (! strcmp (GIMP_OBJECT (palette)->name, name))
{
gimp_context_set_palette (gimp_get_current_context (gimp), palette);
success = TRUE;
break;
}
}
}
return procedural_db_return_args (&palette_set_palette_proc, success);
}
static ProcArg palette_set_palette_inargs[] =
{
{
GIMP_PDB_STRING,
"name",
"The palette name"
}
};
static ProcRecord palette_set_palette_proc =
{
"gimp_palette_set_palette",
"Set the specified palette as the active palette.",
"This procedure allows the active palette to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed palettes. If no matching palette is found, this procedure will return an error. Otherwise, the specified palette becomes active and will be used in all subsequent palette operations.",
"Nathan Summers <rock@gimp.org>",
"Nathan Summers",
"2001",
GIMP_INTERNAL,
1,
palette_set_palette_inargs,
0,
NULL,
{ { palette_set_palette_invoker } }
};
static Argument *
palette_get_entry_invoker (Gimp *gimp,
Argument *args)
{
gboolean success = TRUE;
Argument *return_args;
gint32 entry;
GimpRGB color;
GimpPalette *palette;
entry = args[0].value.pdb_int;
success = TRUE;
palette = gimp_context_get_palette (gimp_get_current_context(gimp));
if (entry >= palette->n_colors) {
success = FALSE;
}
else
{
color=*(GimpRGB *) g_list_nth(palette->colors, entry)->data;
}
return_args = procedural_db_return_args (&palette_get_entry_proc, success);
if (success)
return_args[1].value.pdb_color = color;
return return_args;
}
static ProcArg palette_get_entry_inargs[] =
{
{
GIMP_PDB_INT32,
"entry_num",
"The entry to retrieve"
}
};
static ProcArg palette_get_entry_outargs[] =
{
{
GIMP_PDB_COLOR,
"color",
"The color requested"
}
};
static ProcRecord palette_get_entry_proc =
{
"gimp_palette_get_entry",
"Gets the specified palette entry from the currently active pallette.",
"This procedure returns the color of the zero-based entry specifed for the current palette. It returns an error if the entry does not exist.",
"Nathan Summers <rock@gimp.org>",
"Nathan Summers",
"2001",
GIMP_INTERNAL,
1,
palette_get_entry_inargs,
1,
palette_get_entry_outargs,
{ { palette_get_entry_invoker } }
};
......@@ -291,6 +291,8 @@ 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;
}
......@@ -384,6 +386,7 @@ 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,6 +103,7 @@ static const gchar * const type_str[] =
"GIMP_PDB_BOUNDARY",
"GIMP_PDB_PATH",
"GIMP_PDB_PARASITE",
"GIMP_PDB_PALETTE",
"GIMP_PDB_STATUS",
"GIMP_PDB_END"
};
......@@ -629,7 +630,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_STATUS (21) }"
"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) }"
},
{
GIMP_PDB_STRING,
......@@ -716,7 +717,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_STATUS (21) }"
"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) }"
},
{
GIMP_PDB_STRING,
......
......@@ -3154,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ 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;
......@@ -3413,6 +3417,7 @@ plug_in_params_destroy (GPParam *params,
params[i].data.d_parasite.data = 0;
}
break;
case GIMP_PDB_PALETTE:
case GIMP_PDB_STATUS:
break;
case GIMP_PDB_END:
......@@ -3494,6 +3499,7 @@ 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,6 +3154,8 @@ 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;
......@@ -3334,6 +3336,8 @@ plug_in_args_to_params (Argument *args,
sizeof (GimpParasite))