gimp/plug-ins/file-psd
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
..
TODO.txt plug-ins: Add support for PSD clipping paths 2022-12-30 16:33:37 +00:00
meson.build plug-ins: rename various '*-save.[ch]' files to '*-export.[ch]'. 2024-04-21 16:48:58 +02:00
new-resource-ids.txt plug-ins/bmp/* plug-ins/faxg3/* plug-ins/fits/* plug-ins/fli/* 2008-08-11 10:06:13 +00:00
psd-export.c Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
psd-export.h plug-ins: rename various '*-save.[ch]' files to '*-export.[ch]'. 2024-04-21 16:48:58 +02:00
psd-image-res-load.c Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
psd-image-res-load.h plug-ins: fix #5944 Unable to open XCF converted PSD files 2021-05-11 12:34:41 -04:00
psd-layer-res-load.c plug-ins: do not drop unsupported psd layers 2024-03-17 17:59:17 -04:00
psd-layer-res-load.h plug-ins: make PSD resource loading handle 64-bit lengths. 2021-05-17 21:27:06 -04:00
psd-load.c app, libgimp, pdb, plug-ins: new GimpGroupLayer class in libgimp. 2024-07-07 10:27:04 +02:00
psd-load.h plug-ins: Display warning for unsupported metadata 2023-04-26 12:26:31 +00:00
psd-thumb-load.c plug-ins, libgimpconfig: Fix minor warnings 2024-01-14 14:30:32 +00:00
psd-thumb-load.h pdb, app, libgimp, plug-ins: replace most PDB filenames/URIs by GFile 2019-09-11 21:48:34 +02:00
psd-util.c plug-ins: Fix parameter type in psd_read_len() 2024-05-31 23:04:54 +00:00
psd-util.h plug-ins: Fix parameter type in psd_read_len() 2024-05-31 23:04:54 +00:00
psd.c plug-ins: Unreference image used in PSD metadata loading 2024-07-29 16:10:17 +00:00
psd.h plug-ins: Convert file_*_save to file_*_export 2024-04-16 16:07:10 +00:00