From 678de416f4b5707dc84f1dfe826e440a2d277a71 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 1 Oct 2005 06:30:03 +0000 Subject: [PATCH] use canonical name for run-mode. 2005-09-30 Manish Singh * plug-ins/pygimp/pygimp-pdb.c (pf_call): use canonical name for run-mode. * plug-ins/pygimp/plug-ins/clothify.py * plug-ins/pygimp/plug-ins/foggify.py: revert the below, since we eat the run-mode parameter again. --- ChangeLog | 9 +++++++++ plug-ins/pygimp/plug-ins/clothify.py | 12 ++++++------ plug-ins/pygimp/plug-ins/foggify.py | 2 +- plug-ins/pygimp/pygimp-pdb.c | 2 +- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8bfe795475..67a6d8fc7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-09-30 Manish Singh + + * plug-ins/pygimp/pygimp-pdb.c (pf_call): use canonical name for + run-mode. + + * plug-ins/pygimp/plug-ins/clothify.py + * plug-ins/pygimp/plug-ins/foggify.py: revert the below, since + we eat the run-mode parameter again. + 2005-09-30 Carol Spears * plug-ins/pygimp/plug-ins/clothify.py diff --git a/plug-ins/pygimp/plug-ins/clothify.py b/plug-ins/pygimp/plug-ins/clothify.py index 5a9f35dee9..182802c7b7 100755 --- a/plug-ins/pygimp/plug-ins/clothify.py +++ b/plug-ins/pygimp/plug-ins/clothify.py @@ -33,23 +33,23 @@ def python_clothify(timg, tdrawable, bx=9, by=9, img.add_layer(layer_one, 0) pdb.gimp_edit_fill(layer_one, BACKGROUND_FILL) - pdb.plug_in_noisify(1, img, layer_one, 0, 0.7, 0.7, 0.7, 0.7) + pdb.plug_in_noisify(img, layer_one, 0, 0.7, 0.7, 0.7, 0.7) layer_two = layer_one.copy() layer_two.mode = MULTIPLY_MODE layer_two.name = "Y Dots" img.add_layer(layer_two, 0) - pdb.plug_in_gauss_rle(1, img, layer_one, bx, 1, 0) - pdb.plug_in_gauss_rle(1, img, layer_two, by, 0, 1) + pdb.plug_in_gauss_rle(img, layer_one, bx, 1, 0) + pdb.plug_in_gauss_rle(img, layer_two, by, 0, 1) img.flatten() bump_layer = img.active_layer - pdb.plug_in_c_astretch(1, img, bump_layer) - pdb.plug_in_noisify(1, img, bump_layer, 0, 0.2, 0.2, 0.2, 0.2) - pdb.plug_in_bump_map(1, img, tdrawable, bump_layer, azimuth, + pdb.plug_in_c_astretch(img, bump_layer) + pdb.plug_in_noisify(img, bump_layer, 0, 0.2, 0.2, 0.2, 0.2) + pdb.plug_in_bump_map(img, tdrawable, bump_layer, azimuth, elevation, depth, 0, 0, 0, 0, True, False, 0) gimp.delete(img) diff --git a/plug-ins/pygimp/plug-ins/foggify.py b/plug-ins/pygimp/plug-ins/foggify.py index 81d084f6af..7e3ce09665 100755 --- a/plug-ins/pygimp/plug-ins/foggify.py +++ b/plug-ins/pygimp/plug-ins/foggify.py @@ -37,7 +37,7 @@ def python_foggify(img, layer, name, colour, turbulence, opacity): fog.add_mask(mask) # add some clouds to the layer - pdb.plug_in_plasma(1, img, mask, int(time.time()), turbulence) + pdb.plug_in_plasma(img, mask, int(time.time()), turbulence) # apply the clouds to the layer fog.remove_mask(MASK_APPLY) diff --git a/plug-ins/pygimp/pygimp-pdb.c b/plug-ins/pygimp/pygimp-pdb.c index 7968992542..5a0d5abe0a 100644 --- a/plug-ins/pygimp/pygimp-pdb.c +++ b/plug-ins/pygimp/pygimp-pdb.c @@ -766,7 +766,7 @@ pf_call(PyGimpPDBFunction *self, PyObject *args, PyObject *kwargs) fprintf(stderr, "--- %s --- ", PyString_AsString(self->proc_name)); #endif - if (self->nparams > 0 && !strcmp(self->params[0].name, "run_mode")) { + if (self->nparams > 0 && !strcmp(self->params[0].name, "run-mode")) { params = pygimp_param_from_tuple(args, self->params + 1, self->nparams - 1);