handle GIMP_PDB_COLOR correctly. This fixes

2002-08-31  James Henstridge  <james@daa.com.au>

    * libgimp/gimp.c (gimp_run_procedure): handle GIMP_PDB_COLOR
    correctly.  This fixes gimp_palette_set_{back,fore}ground.
This commit is contained in:
James Henstridge 2002-08-30 17:05:37 +00:00 committed by James Henstridge
parent fe65e90a5f
commit dd87d9f127
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-08-31 James Henstridge <james@daa.com.au>
* libgimp/gimp.c (gimp_run_procedure): handle GIMP_PDB_COLOR
correctly. This fixes gimp_palette_set_{back,fore}ground.
2002-08-29 Manish Singh <yosh@gimp.org>
* tools/pdbgen/lib.pl: fix minor buglet that earlier perls silently

View File

@ -502,6 +502,7 @@ gimp_run_procedure (gchar *name,
(void) va_arg (args, gchar **);
break;
case GIMP_PDB_COLOR:
(void) va_arg (args, GimpRGB *);
break;
case GIMP_PDB_PARASITE:
(void) va_arg (args, GimpParasite *);
@ -559,6 +560,7 @@ gimp_run_procedure (gchar *name,
proc_run.params[i].data.d_stringarray = va_arg (args, gchar **);
break;
case GIMP_PDB_COLOR:
proc_run.params[i].data.d_color = *va_arg (args, GimpRGB *);
break;
case GIMP_PDB_REGION:
break;