Gimp/pdb/groups
Jehan d493f0537f Issue #8900 and #9923: reimplementing GimpUnit as a proper class.
This fixes all our GObject Introspection issues with GimpUnit which was
both an enum and an int-derived type of user-defined units *completing*
the enum values. GIR clearly didn't like this!

Now GimpUnit is a proper class and units are unique objects, allowing to
compare them with an identity test (i.e. `unit == gimp_unit_pixel ()`
tells us if unit is the pixel unit or not), which makes it easy to use,
just like with int, yet adding also methods, making for nicer
introspected API.

As an aside, this also fixes #10738, by having all the built-in units
retrievable even if libgimpbase had not been properly initialized with
gimp_base_init().
I haven't checked in details how GIR works to introspect, but it looks
like it loads the library to inspect and runs functions, hence
triggering some CRITICALS because virtual methods (supposed to be
initialized with gimp_base_init() run by libgimp) are not set. This new
code won't trigger any critical because the vtable method are now not
necessary, at least for all built-in units.

Note that GimpUnit is still in libgimpbase. It could have been moved to
libgimp in order to avoid any virtual method table (since we need to
keep core and libgimp side's units in sync, PDB is required), but too
many libgimpwidgets widgets were already using GimpUnit. And technically
most of GimpUnit logic doesn't require PDB (only the creation/sync
part). This is one of the reasons why user-created GimpUnit list is
handled and stored differently from other types of objects.

Globally this simplifies the code a lot too and we don't need separate
implementations of various utils for core and libgimp, which means less
prone to errors.
2024-08-02 10:46:38 +02:00
..
brush.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
brush_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
brushes.pdb
buffer.pdb
channel.pdb Issue #10814: [Color Space Invasion] crash in channel_get_color_invoker. 2024-02-13 23:25:41 +01:00
context.pdb app, libgimp*, pdb, plug-ins: GimpContext is now using only GeglColor. 2024-02-11 23:28:02 +01:00
debug.pdb
display.pdb Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
drawable.pdb pdb: Remove item_is_attached restriction from NDE filters 2024-07-15 21:12:17 +00:00
drawable_color.pdb app, libgimp, pdb: minor fixes. 2023-02-14 17:18:38 +01:00
drawable_edit.pdb
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
edit.pdb app, pdb: fix incorrect group checks for edit-cut and edit-named-cut 2024-04-15 18:13:32 -04:00
file.pdb libgimp, plug-ins: Remove n_drawables parameter from gimp_file_save () 2024-05-03 15:22:39 +00:00
floating_sel.pdb
font.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
font_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
fonts.pdb Fix fonts when exporting to pdf 2023-12-08 11:09:22 +00:00
gimp.pdb
gimprc.pdb Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
gradient.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
gradient_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
gradients.pdb
group_layer.pdb app, libgimp, pdb, plug-ins: new GimpGroupLayer class in libgimp. 2024-07-07 10:27:04 +02:00
help.pdb
image.pdb Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +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 app, libgimp, pdb, plug-ins: canvas grid now using GeglColor. 2024-02-11 23:28:03 +01:00
image_guides.pdb pdb: Allow off-canvas guides with Script-fu 2024-05-27 15:42:10 +00: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, libgimp, pdb, plug-ins: getting rid of some GimpRGB usage. 2024-02-11 23:28:02 +01:00
image_transform.pdb
image_undo.pdb pdb: forgot one case of behavior in previous commit 2023-07-21 17:03:32 -04:00
item.pdb libgimp, app, pdb: Rename GimpVectors to GimpPath 2024-07-12 06:16:25 +00:00
item_transform.pdb
layer.pdb app, libgimp, pdb, plug-ins: new GimpGroupLayer class in libgimp. 2024-07-07 10:27:04 +02:00
message.pdb
paint_tools.pdb
palette.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
palette_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
palettes.pdb
path.pdb pdb, libgimpbase: Rename GIMP_VECTORS_STROKE_TYPE... 2024-07-19 15:07:43 +00:00
pattern.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
pattern_select.pdb app, libgimp, pdb: new PDB group gimpdrawableselect. 2023-10-01 21:02:33 +02:00
patterns.pdb
pdb.pdb app, libgimp, pdb: new GimpVectorLoadProcedure class. 2024-04-24 01:16:46 +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: fix #11815 CRITCALS from defaulted args for gegl wrapper procs 2024-07-16 10:25:41 +00:00
progress.pdb app, libgimp, pdb, plug-ins: fix failure to set plug-in as transient. 2024-06-08 21:54:21 +02:00
resource.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
selection.pdb app, pdb: fix #8363 gimp_selection_float() crash 2024-04-15 18:13:32 -04:00
text_layer.pdb pdb: Update text-layer-set-color to GeglColor 2024-03-05 01:42:22 +00: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 Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00