Allow ability to not update the color history from API calls
GIMP version: 2.10.12
Operating System: Ubuntu 16.04
Is the bug reproducible? Always
- Create a 300x300 image, set the gradient to something visible (Full saturation spectrum)
- Open the python console and execute:
image=gimp.image_list() layer=image.active_drawable colors=gimp.gradient_get_uniform_samples(gimp.context_get_gradient(),20,False) for i,c in enumerate(colors,1): pdb.gimp_context_set_foreground(c) pdb.gimp_paintbrush_default(layer,4,[10*i,100,10*i,100])
In 2.8, setting the colors using the API doesn't fill the color history of the Foreground color selector:
In 2.10.12; the color history is overwritten with the colors we used in the code:
This happens whether a pdb.gimp_context_push() has been executed or not.
There are changes in the handling of the FG/BG color selection between 2.8 and 2.10, for instance in 2.10 it seems that the color has to be actually used to be added to the history. This could be related.