From 8a47cc921612629ee9fcefb568bdd3d6516e8d2f Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 6 Oct 2004 13:14:47 +0000 Subject: [PATCH] changed new member "deprecated" from "gboolean" to a "gchar*" which holds 2004-10-06 Michael Natterer * app/pdb/procedural_db.h (struct ProcRecord): changed new member "deprecated" from "gboolean" to a "gchar*" which holds the name of the replacement procedure. * tools/pdbgen/app.pl: changed accordingly. * app/plug-in/plug-in-message.c (plug_in_handle_proc_run): show the name of the replacement procedure in the warning message. * tools/pdbgen/stddefs.pdb: added utility function std_pdb_deprecated() which takes the name of the replacement procedure and fills the blurb, help, author, copyright, date and deprecated fields of the procedure definition. * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/palettes.pdb * tools/pdbgen/pdb/patterns.pdb * tools/pdbgen/pdb/text_tool.pdb: use it instead of duplicating the same code and strings for all deprecated procedures. * app/pdb/*_cmds.c * libgimp/gimppatterns_pdb.c * libgimp/gimptexttool_pdb.c: regenerated. 20 --- ChangeLog | 4 +++- libgimp/gimppatterns_pdb.c | 4 ++-- libgimp/gimptexttool_pdb.c | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index f61f3562ab..939acfef6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,7 +22,9 @@ * tools/pdbgen/pdb/text_tool.pdb: use it instead of duplicating the same code and strings for all deprecated procedures. - * app/pdb/*_cmds.c: regenerated. + * app/pdb/*_cmds.c + * libgimp/gimppatterns_pdb.c + * libgimp/gimptexttool_pdb.c: regenerated. 2004-10-06 Michael Natterer diff --git a/libgimp/gimppatterns_pdb.c b/libgimp/gimppatterns_pdb.c index 7f64f0c6d2..e8a4615371 100644 --- a/libgimp/gimppatterns_pdb.c +++ b/libgimp/gimppatterns_pdb.c @@ -143,9 +143,9 @@ gimp_patterns_get_pattern (gint *width, * @length: Length of pattern mask data. * @mask_data: The pattern mask data. * - * This procedure is deprecated! Use 'gimp_pattern_get_data' instead. + * This procedure is deprecated! Use 'gimp_pattern_get_pixels' instead. * - * This procedure is deprecated! Use 'gimp_pattern_get_data' instead. + * This procedure is deprecated! Use 'gimp_pattern_get_pixels' instead. * * Returns: The pattern name. */ diff --git a/libgimp/gimptexttool_pdb.c b/libgimp/gimptexttool_pdb.c index 88d8b0e484..fbc3650adb 100644 --- a/libgimp/gimptexttool_pdb.c +++ b/libgimp/gimptexttool_pdb.c @@ -173,10 +173,9 @@ gimp_text_get_extents_fontname (const gchar *text, * @registry: The font registry. * @encoding: The font encoding. * - * Add text at the specified location as a floating selection or a new - * layer. + * This procedure is deprecated! Use 'gimp_get_text_fontname' instead. * - * This function is deprecated, use gimp_get_text_fontname() instead. + * This procedure is deprecated! Use 'gimp_get_text_fontname' instead. * * Returns: The new text layer. */ @@ -250,9 +249,10 @@ gimp_text (gint32 image_ID, * @ascent: The ascent of the specified font. * @descent: The descent of the specified font. * - * Get extents of the bounding box for the specified text. + * This procedure is deprecated! Use 'gimp_get_text_extents_fontname' + * instead. * - * This function is deprecated, use gimp_get_text_extents_fontname() + * This procedure is deprecated! Use 'gimp_get_text_extents_fontname' * instead. * * Returns: TRUE on success.