gimp/libgimpconfig
lloyd konneker d59a7af38c libgimp: API refactor GUI for GimpResource
Simplifies chooser widgets (e.g. GimpBrushSelect) by eliminating attributes (e.g. opacity) of chosen resource.
See #8745, but this commit fixes that by first refactoring the code.

Refactors GUI widgets (e.g. GimpBrushSelectButton and GimpBrushSelect etc.)

Refactor by "Extract class" GimpResourceSelectButton from GimpBrushSelectButton etc.
This moves common code into an inherited class (formerly called GimpSelectButton)
but the subclasses still exist.
The subclasses mainly just do drawing now.

Refactor by "Extract module" GimpResourceSelect from GimpBrushSelect etc.
Moves common code into one file, generic at runtime on type of GimpResource,
that is, the new code dispatches on type i.e. switch statements.
In the future, when core is changed some of that can be deleted.
The files gimpbrushselect.[c,h] etc. are deleted.
The module adapts the API from core to the API of callbacks to libgimp.

Note that core is running the resource chooser (select) widgets remotely.
Core is still calling back over the wire via PDB with more attributes
than necessary.
The new design gets the attributes from the resource themselves,
instead of receiving them from core callback.
The libgimp side adapts by discarding unneeded attributes.
In the future, core (running choosers for plugins) can be simplified also.

Fix gimp_prop_chooser_brush_new same as other resources.

Finish changes, and clean style.

Annotations
2023-01-14 16:38:40 +00:00
..
.gitignore libgimp*: add GI's .dirstamp to .gitigore 2019-08-03 19:50:17 +02:00
Makefile.am app, libgimp*: add various stamp files to CLEANFILES. 2022-08-01 23:34:50 +02:00
Makefile.gi libgimpconfig: add gimp_config_type_register() 2019-09-16 10:48:32 +02:00
gimpcolorconfig.c libgimpconfig: Retain color scale preferences 2023-01-10 00:20:22 +00:00
gimpcolorconfig.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpconfig-deserialize.c libgimpconfig: this is the appropriate fix for the previous assert. 2022-02-10 22:18:03 +01:00
gimpconfig-deserialize.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpconfig-error.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimpconfig-error.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpconfig-iface.c libgimp, libgimpconfig: fixing gi-docgen "qualifier fragments". 2022-02-18 12:11:01 +01:00
gimpconfig-iface.h Revert "libgimp, libgimpconfig: gimp_config_deserialize_file() should not…" 2022-02-10 22:18:03 +01:00
gimpconfig-params.c libgimp: API refactor GUI for GimpResource 2023-01-14 16:38:40 +00:00
gimpconfig-params.h libgimpconfig: add GIMP_CONFIG_PARAM_DONT_COMPARE flag 2020-04-08 00:10:42 +03:00
gimpconfig-path.c libgimp*, plug-ins: fix some warnings 2021-05-24 20:36:31 +00:00
gimpconfig-path.h libgimp*: lots of doc fixes and new docs for structs and enums 2019-07-24 01:18:30 +02:00
gimpconfig-register.c libgimpconfig: more param spec types to ignore (GeglParamFormat). 2022-10-26 23:29:32 +02:00
gimpconfig-register.h libgimpconfig: add gimp_config_type_register() 2019-09-16 10:48:32 +02:00
gimpconfig-serialize.c libgimpconfig: implement serializing GimpParasite into a GimpConfig. 2021-04-06 00:14:40 +02:00
gimpconfig-serialize.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpconfig-utils.c libgimp*, plug-ins: fix some warnings 2021-05-24 20:36:31 +00:00
gimpconfig-utils.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpconfig.def libgimpconfig: get rid of filenames in all config related APIs 2019-09-21 12:55:12 +02:00
gimpconfig.h libgimpconfig: add gimp_config_type_register() 2019-09-16 10:48:32 +02:00
gimpconfigenums.c app, libgimp*: commit the newly generated *enums.c files. 2022-08-01 20:00:01 +02:00
gimpconfigenums.h libgimpconfig: fix small typo. 2022-03-04 16:09:09 +01:00
gimpconfigtypes.h libgimpconfig: add a GimpScanner typedef and make it a boxed type 2019-08-09 12:42:52 +02:00
gimpconfigwriter.c gir: (skip) functions with varargs 2020-05-21 13:49:38 +02:00
gimpconfigwriter.h libgimpconfig: get rid of filenames in all config related APIs 2019-09-21 12:55:12 +02:00
gimpscanner.c Fix some gobject-introspection annotations 2021-12-02 12:46:05 +01:00
gimpscanner.h libgimpconfig: get rid of filenames in all config related APIs 2019-09-21 12:55:12 +02:00
meson.build meson: fix warnings of deprecated features. 2022-08-31 01:29:37 +02:00