mirror of https://github.com/GNOME/gimp.git
restored old version of this function, it was correct after all (spotted
2006-05-11 Michael Natterer <mitch@gimp.org> * app/pdb/gimppdb-query.c (gimp_pdb_proc_info): restored old version of this function, it was correct after all (spotted by Kevin Cozens).
This commit is contained in:
parent
44e4100fce
commit
ab82f02f6d
|
@ -1,3 +1,9 @@
|
|||
2006-05-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/pdb/gimppdb-query.c (gimp_pdb_proc_info): restored old
|
||||
version of this function, it was correct after all (spotted by
|
||||
Kevin Cozens).
|
||||
|
||||
2006-05-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Applied modified patch from Michael J. Hammel which allows to
|
||||
|
|
|
@ -220,20 +220,27 @@ gimp_pdb_proc_info (GimpPDB *pdb,
|
|||
|
||||
procedure = gimp_pdb_lookup_procedure (pdb, proc_name);
|
||||
|
||||
if (! procedure)
|
||||
if (procedure)
|
||||
{
|
||||
gimp_pdb_get_strings (&strings, procedure, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
const gchar *compat_name;
|
||||
|
||||
compat_name = gimp_pdb_lookup_compat_proc_name (pdb, proc_name);
|
||||
|
||||
if (compat_name)
|
||||
procedure = gimp_pdb_lookup_procedure (pdb, compat_name);
|
||||
{
|
||||
procedure = gimp_pdb_lookup_procedure (pdb, compat_name);
|
||||
|
||||
if (procedure)
|
||||
gimp_pdb_get_strings (&strings, procedure, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
if (procedure)
|
||||
{
|
||||
gimp_pdb_get_strings (&strings, procedure, TRUE);
|
||||
|
||||
*blurb = strings.compat ? strings.blurb : g_strdup (strings.blurb);
|
||||
*help = strings.compat ? strings.help : g_strdup (strings.help);
|
||||
*author = strings.compat ? strings.author : g_strdup (strings.author);
|
||||
|
|
Loading…
Reference in New Issue