Gimp/app/pdb
Jehan dbaa8b6a1c app, pdb: make it possible to delete a color from a colormap if unused.
Until now, it was not really possible to delete a colormap color, but since we
now use GimpPalette, people would definitely try to do so. It just makes sense
to allow doing this, but only if the color is unused.

Additionally when we do this, all the pixels refering to bigger indexes will be
edited so that they continue to refer to the same color (bigger indexes are
shifted by -1). Therefore removing an unused color does not change the image
render.

I wondered if we might want more options, e.g. the ability to delete a color
without fixing indexes (i.e. that colors over the deleted color index would
shift to the next color). This would even allow to delete used colors (though
now the last index would have to be unused one, unless we cycle colors).
Yet I don't think this should belong to this basic API. The most expected
behavior when deleting a color from an image colormap is to fix all indexes
stored in pixels so that the image still shows the same. So that's what this
function will do in this generic usage.
2023-10-09 15:28:20 +02:00
..
brush-cmds.c app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
brush-select-cmds.c app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
brushes-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
buffer-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
channel-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
context-cmds.c app, libgimp, pdb: add an internal gimp_context_get_resource(). 2023-07-27 15:27:53 +02:00
debug-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
display-cmds.c app, libgimp*, pdb, plug-ins: reimplement generic inter-process transient window. 2023-10-01 21:02:33 +02:00
drawable-cmds.c Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
drawable-color-cmds.c app, libgimp, pdb: minor fixes. 2023-02-14 17:18:38 +01:00
drawable-edit-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
drawable-select-cmds.c app, libgimp, pdb: generate widgets for GIMP_PROC_ARG_LAYER|CHANNEL arguments. 2023-10-01 21:02:34 +02:00
dynamics-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
edit-cmds.c Issue #8924: Paste as new image uses the full canvas instead of just… 2023-01-24 12:51:30 +01:00
file-cmds.c pdb: Fix NULL check in gimp-file-load-layers 2023-06-13 04:55:13 +00:00
floating-sel-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
font-cmds.c app, libgimp, pdb: new PDB function gimp_fonts_get_by_name(). 2023-10-02 23:22:49 +02:00
font-select-cmds.c app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
fonts-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
gimp-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
gimp-pdb-compat.c app: remove compat registration for gimp-image-get-active-drawable. 2022-11-09 00:59:59 +01:00
gimp-pdb-compat.h app: use the GParamSpec's name in gimp_pdb_dump() 2019-08-30 11:43:53 +02:00
gimppdb-query.c app: gimp_pdb_query() returns a GStrv. 2022-05-24 17:26:50 +02:00
gimppdb-query.h Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
gimppdb-utils.c app, libgimp, pdb: new PDB function gimp_fonts_get_by_name(). 2023-10-02 23:22:49 +02:00
gimppdb-utils.h app, libgimp, pdb: new PDB function gimp_fonts_get_by_name(). 2023-10-02 23:22:49 +02:00
gimppdb.c Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
gimppdb.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimppdbcontext.c app: do not sync the PDB context "name" property. 2022-04-16 01:40:17 +02:00
gimppdbcontext.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimppdberror.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimppdberror.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpprocedure.c app: fix GStrv argument validation in PDB calls. 2022-05-24 19:48:36 +02:00
gimpprocedure.h app: GimpAction now has a "reason" parameter to explain being disabled. 2021-04-23 19:43:30 +02:00
gimprc-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
gradient-cmds.c app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
gradient-select-cmds.c app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
gradients-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
help-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
image-cmds.c app, libgimp, pdb: new gimp_image_get_palette(). 2023-10-06 22:04:34 +02:00
image-color-profile-cmds.c Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
image-convert-cmds.c app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
image-grid-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
image-guides-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
image-sample-points-cmds.c pdb, libgimp: improve function documentation for sample points 2023-04-09 21:32:00 -04:00
image-select-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
image-transform-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
image-undo-cmds.c app, libgimp, libgimpwidgets, plug-ins, etc: rename behaviour to behavior 2023-07-21 15:35:23 -04:00
internal-procs.c app, libgimp, pdb: new gimp_image_get_palette(). 2023-10-06 22:04:34 +02:00
internal-procs.h app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
item-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
item-transform-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
layer-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
meson.build app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
message-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
paint-tools-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
palette-cmds.c app, pdb: make it possible to delete a color from a colormap if unused. 2023-10-09 15:28:20 +02:00
palette-select-cmds.c app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
palettes-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
pattern-cmds.c app, libgimp, pdb: new gimp_pattern_get_buffer() and improved GimpPatternSelectButton. 2023-10-01 21:02:33 +02:00
pattern-select-cmds.c app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
patterns-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
pdb-cmds.c Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
pdb-types.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
plug-in-cmds.c Issue #8124: plug-in localization now totally moved plug-in side. 2022-07-05 12:22:32 +02:00
plug-in-compat-cmds.c pdb: Fix datatype mismatch created by 2a946712 2023-06-20 17:03:21 +00:00
progress-cmds.c app, libgimp*, pdb, plug-ins: reimplement generic inter-process transient window. 2023-10-01 21:02:33 +02:00
README pdb: (try 3) move PDB generation and sources to toplevel/pdb 2017-12-17 14:16:08 -05:00
resource-cmds.c app, libgimp, pdb: private _gimp_resource_get_by_identifiers() PDB function. 2023-07-27 15:32:16 +02:00
selection-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
text-layer-cmds.c app, libgimp, pdb: gimp_text_layer_new() now uses GimpFont. 2023-10-01 21:02:34 +02:00
text-tool-cmds.c app, libgimp, pdb: further fix gimp_text_get_extents_font() and improve… 2023-10-02 21:30:20 +02:00
unit-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
vectors-cmds.c app, pdb: fixing gimp_vectors_export*() libgimp API. 2022-10-20 19:07:16 +02:00

This directory contains the PDB-wrappers for various internal
Gimp functions.

THESE FILES ARE AUTOGENERATED AND CHANGES HERE ARE USELESS!

If you need to change the code please have a look in ../../pdb/groups.