mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new().
This commit is contained in:
parent
5c8aa1f242
commit
1d50c81130
57 changed files with 225 additions and 299 deletions
|
@ -103,7 +103,7 @@ goat_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
goat_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ var Goat = GObject.registerClass({
|
|||
return procedure;
|
||||
}
|
||||
|
||||
run(procedure, run_mode, image, drawables, args, run_data) {
|
||||
run(procedure, run_mode, image, drawables, config, run_data) {
|
||||
/* TODO: localization. */
|
||||
|
||||
if (drawables.length != 1) {
|
||||
|
|
|
@ -41,7 +41,7 @@ function _(message)
|
|||
return GLib.dgettext(nil, message);
|
||||
end
|
||||
|
||||
function run(procedure, run_mode, image, drawables, args, run_data)
|
||||
function run(procedure, run_mode, image, drawables, config, run_data)
|
||||
-- procedure:new_return_values() crashes LGI so we construct the
|
||||
-- GimpValueArray manually.
|
||||
local retval = Gimp.ValueArray(1)
|
||||
|
|
|
@ -54,7 +54,7 @@ class Goat (Gimp.PlugIn):
|
|||
|
||||
return procedure
|
||||
|
||||
def run(self, procedure, run_mode, image, n_drawables, drawables, args, run_data):
|
||||
def run(self, procedure, run_mode, image, n_drawables, drawables, config, run_data):
|
||||
if n_drawables != 1:
|
||||
msg = _("Procedure '{}' only works with one drawable.").format(procedure.get_name())
|
||||
error = GLib.Error.new_literal(Gimp.PlugIn.error_quark(), msg, 0)
|
||||
|
|
|
@ -57,7 +57,7 @@ public class Goat : Gimp.PlugIn {
|
|||
Gimp.RunMode run_mode,
|
||||
Gimp.Image image,
|
||||
Gimp.Drawable[] drawables,
|
||||
Gimp.ValueArray args) {
|
||||
Gimp.ProcedureConfig config) {
|
||||
var drawable = drawables[0];
|
||||
|
||||
if (run_mode == Gimp.RunMode.INTERACTIVE) {
|
||||
|
|
|
@ -471,7 +471,6 @@ EXPORTS
|
|||
gimp_image_policy_rotate
|
||||
gimp_image_procedure_get_type
|
||||
gimp_image_procedure_new
|
||||
gimp_image_procedure_new2
|
||||
gimp_image_raise_item
|
||||
gimp_image_raise_item_to_top
|
||||
gimp_image_remove_channel
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
struct _GimpImageProcedurePrivate
|
||||
{
|
||||
GimpRunImageFunc run_func;
|
||||
GimpRunImageFunc2 run_func2;
|
||||
gpointer run_data;
|
||||
GDestroyNotify run_data_destroy;
|
||||
};
|
||||
|
@ -146,6 +145,8 @@ gimp_image_procedure_run (GimpProcedure *procedure,
|
|||
const GimpValueArray *args)
|
||||
{
|
||||
GimpImageProcedure *image_proc = GIMP_IMAGE_PROCEDURE (procedure);
|
||||
GimpPDBStatusType status = GIMP_PDB_EXECUTION_ERROR;
|
||||
GimpProcedureConfig *config;
|
||||
GimpValueArray *remaining;
|
||||
GimpValueArray *return_values;
|
||||
GimpRunMode run_mode;
|
||||
|
@ -168,15 +169,10 @@ gimp_image_procedure_run (GimpProcedure *procedure,
|
|||
gimp_value_array_append (remaining, value);
|
||||
}
|
||||
|
||||
if (image_proc->priv->run_func2)
|
||||
{
|
||||
GimpProcedureConfig *config;
|
||||
GimpPDBStatusType status = GIMP_PDB_EXECUTION_ERROR;
|
||||
|
||||
config = gimp_procedure_create_config (procedure);
|
||||
gimp_procedure_config_begin_run (config, image, run_mode, remaining);
|
||||
|
||||
return_values = image_proc->priv->run_func2 (procedure,
|
||||
return_values = image_proc->priv->run_func (procedure,
|
||||
run_mode,
|
||||
image, n_drawables, drawables,
|
||||
config,
|
||||
|
@ -196,17 +192,8 @@ gimp_image_procedure_run (GimpProcedure *procedure,
|
|||
g_printerr ("%s: ERROR: the GimpProcedureConfig object was refed "
|
||||
"by plug-in, it MUST NOT do that!\n", G_STRFUNC);
|
||||
|
||||
g_object_unref (config);
|
||||
}
|
||||
else
|
||||
{
|
||||
return_values = image_proc->priv->run_func (procedure,
|
||||
run_mode,
|
||||
image, n_drawables, drawables,
|
||||
remaining,
|
||||
image_proc->priv->run_data);
|
||||
}
|
||||
|
||||
g_object_unref (config);
|
||||
gimp_value_array_unref (remaining);
|
||||
|
||||
return return_values;
|
||||
|
@ -300,32 +287,3 @@ gimp_image_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
return GIMP_PROCEDURE (procedure);
|
||||
}
|
||||
|
||||
GimpProcedure *
|
||||
gimp_image_procedure_new2 (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
GimpRunImageFunc2 run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy)
|
||||
{
|
||||
GimpImageProcedure *procedure;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_PLUG_IN (plug_in), NULL);
|
||||
g_return_val_if_fail (gimp_is_canonical_identifier (name), NULL);
|
||||
g_return_val_if_fail (proc_type != GIMP_PDB_PROC_TYPE_INTERNAL, NULL);
|
||||
g_return_val_if_fail (proc_type != GIMP_PDB_PROC_TYPE_EXTENSION, NULL);
|
||||
g_return_val_if_fail (run_func != NULL, NULL);
|
||||
|
||||
procedure = g_object_new (GIMP_TYPE_IMAGE_PROCEDURE,
|
||||
"plug-in", plug_in,
|
||||
"name", name,
|
||||
"procedure-type", proc_type,
|
||||
NULL);
|
||||
|
||||
procedure->priv->run_func2 = run_func;
|
||||
procedure->priv->run_data = run_data;
|
||||
procedure->priv->run_data_destroy = run_data_destroy;
|
||||
|
||||
return GIMP_PROCEDURE (procedure);
|
||||
}
|
||||
|
|
|
@ -36,31 +36,6 @@ G_BEGIN_DECLS
|
|||
* @image: the #GimpImage.
|
||||
* @n_drawables: the number of #GimpDrawable-s.
|
||||
* @drawables: (array length=n_drawables): the input #GimpDrawable-s.
|
||||
* @args: the @procedure's remaining arguments.
|
||||
* @run_data: (closure): the run_data given in gimp_image_procedure_new().
|
||||
*
|
||||
* The image function is run during the lifetime of the GIMP session,
|
||||
* each time a plug-in image procedure is called.
|
||||
*
|
||||
* Returns: (transfer full): the @procedure's return values.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
typedef GimpValueArray * (* GimpRunImageFunc) (GimpProcedure *procedure,
|
||||
GimpRunMode run_mode,
|
||||
GimpImage *image,
|
||||
gint n_drawables,
|
||||
GimpDrawable **drawables,
|
||||
const GimpValueArray *args,
|
||||
gpointer run_data);
|
||||
|
||||
/**
|
||||
* GimpRunImageFunc2:
|
||||
* @procedure: the #GimpProcedure that runs.
|
||||
* @run_mode: the #GimpRunMode.
|
||||
* @image: the #GimpImage.
|
||||
* @n_drawables: the number of #GimpDrawable-s.
|
||||
* @drawables: (array length=n_drawables): the input #GimpDrawable-s.
|
||||
* @config: the @procedure's remaining arguments.
|
||||
* @run_data: (closure): the run_data given in gimp_image_procedure_new().
|
||||
*
|
||||
|
@ -71,7 +46,7 @@ typedef GimpValueArray * (* GimpRunImageFunc) (GimpProcedure *procedure,
|
|||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
typedef GimpValueArray * (* GimpRunImageFunc2) (GimpProcedure *procedure,
|
||||
typedef GimpValueArray * (* GimpRunImageFunc) (GimpProcedure *procedure,
|
||||
GimpRunMode run_mode,
|
||||
GimpImage *image,
|
||||
gint n_drawables,
|
||||
|
@ -113,12 +88,6 @@ GimpProcedure * gimp_image_procedure_new (GimpPlugIn *plug_in,
|
|||
GimpRunImageFunc run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy);
|
||||
GimpProcedure * gimp_image_procedure_new2 (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
GimpRunImageFunc2 run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -166,7 +166,7 @@ align_layers_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
align_layers_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, OPTIMIZE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
optimize_run, NULL, NULL);
|
||||
|
||||
|
@ -195,7 +195,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, OPTIMIZE_DIFF_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
optimize_run, NULL, NULL);
|
||||
|
||||
|
@ -220,7 +220,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, UNOPTIMIZE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
optimize_run, NULL, NULL);
|
||||
|
||||
|
@ -242,7 +242,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, REMOVE_BACKDROP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
optimize_run, NULL, NULL);
|
||||
|
||||
|
@ -263,7 +263,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, FIND_BACKDROP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
optimize_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ play_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
play_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ blinds_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
blinds_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ border_average_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
border_average_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ checkerboard_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
checkerboard_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -497,7 +497,7 @@ explorer_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
explorer_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ remap_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC_REMAP))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
remap_run, NULL, NULL);
|
||||
|
||||
|
@ -207,7 +207,7 @@ remap_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PLUG_IN_PROC_SWAP))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
remap_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -390,7 +390,7 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, COMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
|
@ -458,7 +458,7 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DRAWABLE_COMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
|
@ -521,7 +521,7 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, RECOMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ retinex_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
retinex_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ crop_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
crop_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -409,7 +409,7 @@ bender_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
bender_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -271,7 +271,7 @@ decompose_create_procedure (GimpPlugIn *plug_in,
|
|||
g_string_append_c (type_desc, '"');
|
||||
}
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
decompose_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ merge_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
merge_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ despeckle_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
despeckle_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ destripe_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
destripe_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ film_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
film_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ map_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, GRADMAP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
map_run,
|
||||
GINT_TO_POINTER (GRADIENT_MODE),
|
||||
|
@ -155,7 +155,7 @@ map_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PALETTEMAP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
map_run,
|
||||
GINT_TO_POINTER (PALETTE_MODE),
|
||||
|
|
|
@ -146,7 +146,7 @@ grid_create_procedure (GimpPlugIn *plug_in,
|
|||
{
|
||||
const GimpRGB black = { 0.0, 0.0, 0.0, 1.0 };
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
grid_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ guillotine_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
guillotine_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -238,7 +238,7 @@ hot_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
hot_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ jigsaw_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jigsaw_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ mail_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
mail_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ nlfilter_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
nlfilter_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ qbist_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
qbist_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -315,7 +315,7 @@ colorize_create_procedure (GimpPlugIn *plug_in,
|
|||
" (the image with the dst_drawable is converted to RGB if necessary)"
|
||||
" The sample_drawable should be of type RGB or RGBA";
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
colorize_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ palette_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
palette_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ sparkle_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
sparkle_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ designer_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
designer_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ tile_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
tile_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ tile_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
tile_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -867,7 +867,7 @@ lic_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
lic_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ warp_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
warp_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ wavelet_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
wavelet_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -315,7 +315,7 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
#if 0
|
||||
else if (! strcmp (name, DECODE_YCOCG_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
|
@ -337,7 +337,7 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DECODE_YCOCG_SCALED_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
|
@ -361,7 +361,7 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DECODE_ALPHA_EXP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ flame_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
flame_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ explorer_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
explorer_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ gfig_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gfig_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ gimpressionist_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gimpressionist_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -798,7 +798,7 @@ gflare_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gflare_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ ifs_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ifs_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ imap_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
imap_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ lighting_create_procedure (GimpPlugIn *plug_in,
|
|||
{
|
||||
GimpRGB white = { 1.0, 1.0, 1.0, 1.0 };
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
lighting_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ map_create_procedure (GimpPlugIn *plug_in,
|
|||
{
|
||||
GimpRGB white = { 1.0, 1.0, 1.0, 1.0 };
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
map_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -205,7 +205,7 @@ pagecurl_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pagecurl_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ print_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PRINT_PROC_NAME))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
print_run, NULL, NULL);
|
||||
|
||||
|
@ -182,7 +182,7 @@ print_create_procedure (GimpPlugIn *plug_in,
|
|||
#ifndef EMBED_PAGE_SETUP
|
||||
else if (! strcmp (name, PAGE_SETUP_PROC_NAME))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
print_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -160,9 +160,9 @@ script_fu_script_create_PDB_procedure (GimpPlugIn *plug_in,
|
|||
g_debug ("script_fu_script_create_PDB_procedure: %s, plugin type %i, image_proc",
|
||||
script->name, plug_in_type);
|
||||
|
||||
procedure = gimp_image_procedure_new2 (plug_in, script->name,
|
||||
procedure = gimp_image_procedure_new (plug_in, script->name,
|
||||
plug_in_type,
|
||||
(GimpRunImageFunc2) script_fu_run_image_procedure,
|
||||
(GimpRunImageFunc) script_fu_run_image_procedure,
|
||||
script, /* user_data, pointer in extension-script-fu process */
|
||||
NULL);
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ sel2path_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
sel2path_run, NULL, NULL);
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ twain_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_NAME))
|
||||
{
|
||||
procedure = gimp_image_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
twain_run, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue