2.99 libgimp: enhance: GimpProcedureDialog support G_PARAM_ENUM
Currently, if a plugin registers an argument using G_PARAM_SPEC_ENUM, and the plugin uses GimpProcedureDialog, you get in the console something similar to:
(Sphere v3:305): LibGimpUI-WARNING **: 18:57:40.679: gimp_procedure_dialog_get_widget: parameter option has non supported type GParamEnum
Both Python and ScriptFu plugins formerly supported dialog widgets for enums (PF_ENUM and SF-ENUM.) And ScriptFu v3 still does, but using ScriptFu's own GUI.
Widgets for enums can be just int combo boxes where the store is built from an enum. Building the store can be done by the existing gimp_enum_store_new.
The corresponding property (that the widget edits) has param spec G_PARAM_ENUM, but an enum is int-valued, so an int combo box works to edit the property.
I have prototyped it. It is a small change, essentially only adding a case, where the underlying machinery exists. Will soon submit an MR.
Related to a discussion on gimp-dev mail list about SF-OPTION and dynamic enum definitions.