Commit ff654be7 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

deprecate gimp_selection_clear() in favor of gimp_selection_none(). Fixes

2004-11-13  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/selection.pdb: deprecate gimp_selection_clear()
	in favor of gimp_selection_none(). Fixes bug #156765.

	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.[ch]: regenerated.
parent 61c39023
2004-11-13 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/selection.pdb: deprecate gimp_selection_clear()
in favor of gimp_selection_none(). Fixes bug #156765.
* app/pdb/selection_cmds.c
* libgimp/gimpselection_pdb.[ch]: regenerated.
2004-11-13 Kevin Cozens <kcozens@cvs.gimp.org>
 
* plug-ins/gfig/gfig.c
* plug-ins/gfig/gfig-dialog.c: Changed gimp-selection-none to
gimp-selection-clear (bug #156765)
* plug-ins/gfig/gfig-dialog.c: Changed gimp_selection_clear() to
gimp_selection_none() (bug #156765).
 
2004-11-13 Kevin Cozens <kcozens@cvs.gimp.org>
 
......
......@@ -478,12 +478,12 @@ static ProcArg selection_clear_inargs[] =
static ProcRecord selection_clear_proc =
{
"gimp_selection_clear",
"Set the selection to none, clearing all previous content.",
"This procedure sets the selection mask to empty, assigning the value 0 to every pixel in the selection channel.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_selection_none' instead.",
"This procedure is deprecated! Use 'gimp_selection_none' instead.",
"",
"",
"",
"gimp_selection_none",
GIMP_INTERNAL,
1,
selection_clear_inargs,
......
......@@ -238,10 +238,7 @@ _gimp_selection_float (gint32 drawable_ID,
* gimp_selection_clear:
* @image_ID: The image.
*
* Set the selection to none, clearing all previous content.
*
* This procedure sets the selection mask to empty, assigning the value
* 0 to every pixel in the selection channel.
* This procedure is deprecated! Use gimp_selection_none() instead.
*
* Returns: TRUE on success.
*/
......
......@@ -45,7 +45,9 @@ gboolean gimp_selection_translate (gint32 image_ID,
gint32 _gimp_selection_float (gint32 drawable_ID,
gint offx,
gint offy);
#ifndef GIMP_DISABLE_DEPRECATED
gboolean gimp_selection_clear (gint32 image_ID);
#endif /* GIMP_DISABLE_DEPRECATED */
gboolean gimp_selection_invert (gint32 image_ID);
gboolean gimp_selection_sharpen (gint32 image_ID);
gboolean gimp_selection_all (gint32 image_ID);
......
......@@ -207,14 +207,7 @@ CODE
}
sub selection_clear {
$blurb = 'Set the selection to none, clearing all previous content.';
$help = <<'HELP';
This procedure sets the selection mask to empty, assigning the value 0 to every
pixel in the selection channel.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_selection_none');
@inargs = ( &std_image_arg );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment