Gimp/pdb/groups
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.pdb libgimp, pdb: replacing gimp_brush_get_pixels() by gimp_brush_get_buffer()… 2023-10-01 21:02:33 +02:00
brush_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
brushes.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
buffer.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
channel.pdb pdb: add "lib_private" on procedures too, to make them private 2019-08-07 19:09:00 +02:00
context.pdb app, libgimp, pdb: add an internal gimp_context_get_resource(). 2023-07-27 15:27:53 +02:00
debug.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
display.pdb app, libgimp*, pdb, plug-ins: reimplement generic inter-process transient window. 2023-10-01 21:02:33 +02:00
drawable.pdb Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
drawable_color.pdb app, libgimp, pdb: minor fixes. 2023-02-14 17:18:38 +01:00
drawable_edit.pdb app, pdb: fix pdb and generated code. 2020-08-01 16:36:27 +02:00
drawable_select.pdb app, libgimp, pdb: generate widgets for GIMP_PROC_ARG_LAYER|CHANNEL arguments. 2023-10-01 21:02:34 +02:00
dynamics.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
edit.pdb Issue #8924: Paste as new image uses the full canvas instead of just… 2023-01-24 12:51:30 +01:00
file.pdb pdb: Fix NULL check in gimp-file-load-layers 2023-06-13 04:55:13 +00:00
floating_sel.pdb Initial space invasion commit in GIMP 2018-07-21 16:42:57 +02:00
font.pdb app, libgimp, pdb: new PDB function gimp_fonts_get_by_name(). 2023-10-02 23:22:49 +02:00
font_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
fonts.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
gimp.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
gimprc.pdb pdb: add "lib_private" on procedures too, to make them private 2019-08-07 19:09:00 +02:00
gradient.pdb app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
gradient_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
gradients.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
help.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
image.pdb app, libgimp, pdb: new gimp_image_get_palette(). 2023-10-06 22:04:34 +02:00
image_color_profile.pdb Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
image_convert.pdb app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
image_grid.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
image_guides.pdb Get rid of capitalized "ID" in function and variable names 2019-08-23 22:23:23 +02:00
image_sample_points.pdb pdb, libgimp: improve function documentation for sample points 2023-04-09 21:32:00 -04:00
image_select.pdb app: GimpSelectionEditor multi-drawable aware. 2020-08-17 18:22:19 +02:00
image_transform.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
image_undo.pdb pdb: forgot one case of behavior in previous commit 2023-07-21 17:03:32 -04:00
item.pdb Issue #5946: skip gimp_*get_*() API from GObject Introspection. 2022-06-27 21:20:06 +02:00
item_transform.pdb app, devel-docs, libgimp, pdb: delete gimpitem-linked.[ch]. 2021-12-23 13:45:20 +01:00
layer.pdb app, devel-docs, libgimp, pdb: delete gimpitem-linked.[ch]. 2021-12-23 13:45:20 +01:00
message.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
paint_tools.pdb app, pdb: move "src-drawables" from core to option object for… 2021-09-14 17:59:47 +02:00
palette.pdb app, pdb: make it possible to delete a color from a colormap if unused. 2023-10-09 15:28:20 +02:00
palette_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
palettes.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
pattern.pdb app, libgimp, pdb: new gimp_pattern_get_buffer() and improved GimpPatternSelectButton. 2023-10-01 21:02:33 +02:00
pattern_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
patterns.pdb Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
pdb.pdb Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
plug_in.pdb Issue #8124: plug-in localization now totally moved plug-in side. 2022-07-05 12:22:32 +02:00
plug_in_compat.pdb pdb: Allow ripple to take floating point inputs 2023-06-20 15:27:10 +00:00
progress.pdb app, libgimp*, pdb, plug-ins: reimplement generic inter-process transient window. 2023-10-01 21:02:33 +02:00
resource.pdb app, libgimp, pdb: private _gimp_resource_get_by_identifiers() PDB function. 2023-07-27 15:32:16 +02:00
selection.pdb app, libgimp, pdb: fix gimp_selection_float() usage. 2020-05-18 02:09:45 +02:00
text_layer.pdb app, libgimp, pdb: gimp_text_layer_new() now uses GimpFont. 2023-10-01 21:02:34 +02:00
text_tool.pdb app, libgimp, pdb: further fix gimp_text_get_extents_font() and improve… 2023-10-02 21:30:20 +02:00
unit.pdb pdb: add "lib_private" on procedures too, to make them private 2019-08-07 19:09:00 +02:00
vectors.pdb app, pdb: fixing gimp_vectors_export*() libgimp API. 2022-10-20 19:07:16 +02:00