see plug-ins/perl/Changes

This commit is contained in:
Marc Lehmann 1999-10-27 22:06:16 +00:00
parent c02616dc38
commit 236a5172cd
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ register "colour_to_alpha",
sub { # es folgt das eigentliche Skript...
my($image,$drawable,$colour)=@_;
$drawable->layer or die "colour_to_alpha only works with layers\n";
$drawable->is_layer or die "colour_to_alpha only works with layers\n";
$drawable->add_alpha unless $drawable->has_alpha;
Gimp->progress_init ("Replacing colour...");

View file

@ -35,7 +35,7 @@ register "plug_in_ditherize",
sub {
my($image,$drawable,$colours)=@_;
$drawable->layer or die "this plug-in only works for layers";
$drawable->is_layer or die "this plug-in only works for layers";
# make sure somehting is selected
$drawable->mask_bounds or $image->selection_all;

View file

@ -8,7 +8,7 @@ sub fire {
my ($w,$h) = ($drawable->width, $drawable->height);
$drawable->layer or die "sorry, this function needs to call functions that work only for layers :(\n";
$drawable->is_layer or die "sorry, this function needs to call functions that work only for layers :(\n";
$image->undo_push_group_start;
$drawable->wind($threshold, 0, $strength, 0, 1);