gimp/plug-ins/python
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
..
python-console Issue #8734: Python-fu misses sys.stdout.flush. 2022-10-12 23:40:04 +02:00
.gitignore plug-ins: add .gitignore files. 2019-08-06 23:22:18 +02:00
colorxhtml.py plug-ins: Fix Color XHTML export and GUI crash 2022-08-06 15:10:41 +00:00
file-openraster.py plug-ins: use list() variants in bindings. 2022-06-27 22:30:42 +02:00
foggify.py plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
gradients-save-as-css.py Issue #8498: Quirky text to translate in gradients-save-as-css.py. 2022-08-16 21:18:51 +02:00
histogram-export.py plug-ins: Fix crash in histogram-export 2022-07-20 12:51:03 +00:00
Makefile.am libgimp: API refactor GUI for GimpResource 2023-01-14 16:38:40 +00:00
meson.build 2.99 libgimp: add GimpResource, GimpBrush, GimpPropWidgetBrush 2023-01-14 12:58:05 +00:00
palette-offset.py plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
palette-sort.py plug-ins: Show Palette Sort GUI 2023-01-11 16:13:17 +00:00
palette-to-gradient.py plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
pygimp.interp.in Fix pygimp.interp generation, add /usr/bin/python3 alias 2020-07-28 17:17:18 +02:00
python-eval.py plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
spyro-plus.py plug-ins: use list() variants in bindings. 2022-06-27 22:30:42 +02:00
test-dialog.py libgimp: API refactor GUI for GimpResource 2023-01-14 16:38:40 +00:00