mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
applied a patch from Simon which adapts the pygimp scripts to the new
gimp_edit_fill() interface --Sven
This commit is contained in:
parent
8663dfbf4f
commit
f0643302c6
|
@ -1,3 +1,12 @@
|
|||
Sat Mar 25 02:01:18 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/plug-ins/clothify.py
|
||||
* plug-ins/pygimp/plug-ins/foggify.py
|
||||
* plug-ins/pygimp/plug-ins/shadow_bevel.py
|
||||
* plug-ins/pygimp/plug-ins/sphere.py: applied a patch provided by
|
||||
Simon Budig <Simon.Budig@unix-ag.uni-siegen.de> which adapts the
|
||||
pygimp scripts to the new gimp_edit_fill () interface.
|
||||
|
||||
Sat Mar 25 01:19:10 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/install.c: changed the title_color to "dark orange" which is
|
||||
|
|
|
@ -33,7 +33,7 @@ def python_clothify(timg, tdrawable, bx=9, by=9,
|
|||
100, NORMAL_MODE)
|
||||
img.disable_undo()
|
||||
if have_gimp11:
|
||||
pdb.gimp_edit_fill(layer_one)
|
||||
pdb.gimp_edit_fill(layer_one, BG_IMAGE_FILL)
|
||||
else:
|
||||
pdb.gimp_edit_fill(img, layer_one)
|
||||
img.add_layer(layer_one, 0)
|
||||
|
|
|
@ -7,14 +7,14 @@ have_gimp11 = gimp.major_version > 1 or \
|
|||
gimp.major_version == 1 and gimp.minor_version >= 1
|
||||
|
||||
def python_foggify(img, layer, name, colour, turbulence, opacity):
|
||||
img.disable_undo()
|
||||
pdb.gimp_undo_push_group_start(img)
|
||||
|
||||
fog = gimp.layer(img, name, layer.width, layer.height, RGBA_IMAGE,
|
||||
opacity, NORMAL_MODE)
|
||||
oldbg = gimp.get_background()
|
||||
gimp.set_background(colour)
|
||||
if have_gimp11:
|
||||
pdb.gimp_edit_fill(fog)
|
||||
pdb.gimp_edit_fill(fog, BG_IMAGE_FILL)
|
||||
else:
|
||||
pdb.gimp_edit_fill(img, fog)
|
||||
gimp.set_background(oldbg)
|
||||
|
@ -31,7 +31,7 @@ def python_foggify(img, layer, name, colour, turbulence, opacity):
|
|||
# apply the clouds to the layer
|
||||
img.remove_layer_mask(fog, APPLY)
|
||||
|
||||
img.enable_undo()
|
||||
pdb.gimp_undo_push_group_end(img)
|
||||
|
||||
register(
|
||||
"python_fu_foggify",
|
||||
|
|
|
@ -7,7 +7,7 @@ have_gimp11 = gimp.major_version > 1 or gimp.major_version == 1 and \
|
|||
|
||||
def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y):
|
||||
# disable undo for the image
|
||||
img.disable_undo()
|
||||
pdb.gimp_undo_push_group_start(img)
|
||||
|
||||
# copy the layer
|
||||
shadow = drawable.copy(TRUE)
|
||||
|
@ -43,7 +43,7 @@ def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y):
|
|||
gimp.delete(shadow)
|
||||
|
||||
# enable undo again
|
||||
img.enable_undo()
|
||||
pdb.gimp_undo_push_group_end(img)
|
||||
|
||||
register(
|
||||
"shadow_bevel",
|
||||
|
|
|
@ -44,7 +44,7 @@ def python_sphere(radius, light, shadow, bg_colour, sphere_colour):
|
|||
gimp.set_foreground(sphere_colour)
|
||||
gimp.set_background(bg_colour)
|
||||
if have_gimp11:
|
||||
pdb.gimp_edit_fill(drawable)
|
||||
pdb.gimp_edit_fill(drawable, BG_IMAGE_FILL)
|
||||
else:
|
||||
pdb.gimp_edit_fill(img, drawable)
|
||||
gimp.set_background(20, 20, 20)
|
||||
|
|
Loading…
Reference in a new issue