2.99 ScriptFu: bug: registration of SF-ADJUSTMENT args is flawed, always float
Symptoms:
-
widgets in GimpProcedureDialog for a plugin are always "floaty" showing decimal places, even for args which should be integers.
-
the signature of a plugin, in the PDB Browser, shows a float where the script author intended an integer.
Declaration of arg in ScriptFu using SF-ADJUSTMENT can specify either an integer or float valued formal argument, by the "digits" field being 0 or a positive integer for count of decimal places.
Currently, an SF-ADJUSTMENT declaration always registers in the PDB an argument that is float valued (g_param_spec_float.)
This is not important for functioning. In Scheme, both floats and ints are "numeric" and arithmetic between them just works.
But it does affect the look-and-feel of widgets shown by GimpProcedureDialog, a widget of class GtkAdjustment. And it affects the signature of the plugin.
It doesn't affect the widget shown by the legacy ScriptFu GUI (which rolls its own, and doesn't use GimpProcedureDialog.)
This bug is more apparent since 12c0c180 which started ScriptFu using GimpProcedureDialog.
I don't think this affects 2.10.