Skip to content

spinbutton: Bring back auto-sizing

Matthias Clasen requested to merge fix-spin-button-auto-sizing into master

We lost this when GtkSpinButton was first ported to the new editable regime, and then the GtkBoxLayout.

Bring it back, but without text measurement, by overriding width-chars for the GtkText inside, and only do it if GtkSpinButton::width-chars is unset (ie -1).

Merge request reports

Loading