gimp/tools/pdbgen/stddefs.pdb
Michael Natterer ebf18dce39 tools/pdbgen/lib.pl added support for deprecated procedures without any
2004-11-19  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/lib.pl
	* tools/pdbgen/stddefs.pdb: added support for deprecated procedures
	without any replacement.

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): added
	a special warning for procedures without replacement.

	* tools/pdbgen/pdb/drawable.pdb: deprecated drawable_set_image()
	without any replacement and made it a nop (which fails if the
	passed image is different from the drawable's image). It's not
	needed any longer since 2.0 and moreover dangerous to use.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* app/core/gimpitem.c (gimp_item_set_image): replaced assertion
	for gimp_item_is_floating() by !gimp_item_is_attached(). The
	former warned when adding a layer with already added mask to the
	image (which is a perfectly valid operation).
2004-11-19 12:38:34 +00:00

54 lines
1.5 KiB
Plaintext

# The GIMP -- an image manipulation program
# Copyright (C) 1998-2003 Manish Singh <yosh@gimp.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Boilerplate PDB stuff
sub std_pdb_misc {
$author = $copyright = 'Spencer Kimball & Peter Mattis';
$date = '1995-1996';
}
sub std_pdb_deprecated {
if (@_) {
$blurb = $help = "This procedure is deprecated! Use '@_' instead.";
$deprecated = "@_";
} else {
$blurb = $help = "This procedure is deprecated!";
$deprecated = "NONE";
}
$author = $copyright = $date = '';
}
sub std_image_arg () {{
name => 'image',
type => 'image',
desc => 'The image',
alias => 'gimage'
}}
sub std_antialias_arg () {{
name => 'antialias',
type => 'boolean',
desc => 'Antialiasing (%%desc%%)'
}}
sub std_orientation_enum () {
'enum GimpOrientationType (no GIMP_ORIENTATION_UNKNOWN)'
}
1;