Problem with LabelSpin widget Gimp 2.99.16
Environment/Versions
- GIMP version:2.99.16
- Package: flatpak
- Operating System: Ubuntu 23.10
Description of the bug
I am using the LabelSpin
widget as a way of making choices in a Python plugin. I define a property as a member of __gproperties__ "LabelSpin1":(int, "Label Spin 1", "Simple choices",0, 6, 3, GObject.ParamFlags.READWRITE)
, then I add the property as an argument, procedure.add_argument_from_property(self, "LabelSpin1")
and then create the plugin dialog either by using dialog.fill()
as the LabelSpin
is the default widget or by GimpUi.ProcedureDialog.get_widget(dialog, "LabelSpin1", GimpUi.LabelSpin())
. So far this all works but if the specified upper limit for the widget is less than 6 the dialog is produced but the widget does not operate properly. The value cannot be increased and can only be decreased by one before the widget freezes. I also get the error message LibGimpWidgets-CRITICAL **: 10:32:04.126: gimp_label_spin_update_settings: assertion 'upper >= lower' failed
although from the settings upper is greater than lower. With an upper setting of 6 or more the widget works exactly as expected but the error is still returned
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- See above
…
Expected result:
Actual result:
Additional information
If you have a backtrace for a crash or a warning, paste it here.