mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
ScriptFu: fix #12157 old-style dialog slider default 0 instead of declared value
This seems like a hack. A better fix might be in the gimp_scale_entry widget.
This commit is contained in:
@@ -349,6 +349,13 @@ script_fu_interface_dialog (SFScript *script,
|
||||
arg->default_value.sfa_adjustment.lower,
|
||||
arg->default_value.sfa_adjustment.upper,
|
||||
arg->default_value.sfa_adjustment.digits);
|
||||
|
||||
/* #12157 We should not need to set value, since we just passed it.
|
||||
* But seems to be a flaw in the widget.
|
||||
* The comments in gimp_label_spin_init, says it inits to bogus.
|
||||
*/
|
||||
gimp_label_spin_set_value ((GimpLabelSpin*)widget, arg->value.sfa_adjustment.value);
|
||||
|
||||
gimp_label_spin_set_increments (GIMP_LABEL_SPIN (widget),
|
||||
arg->default_value.sfa_adjustment.step,
|
||||
arg->default_value.sfa_adjustment.page);
|
||||
|
Reference in New Issue
Block a user