https://bugs.documentfoundation.org/show_bug.cgi?id=174121

--- Comment #1 from Callegar <[email protected]> ---
If I get it right, LibreOffice abstracts native OS widgets through its
weld::SpinButton interface. The GTK implementation lives in
vcl/unx/gtk3/gtkinst.cxx (and gtk4inst.cxx) inside the GtkInstanceSpinButton
class.

To replicate Qt's snapping behavior in GTK, a one would (more or less) need to:

- Intercept the step action signal in GtkInstanceSpinButton.

- Calculate the quantized value based on the current step increment before
applying the increment.

- Call gtk_spin_button_set_value() with the snapped coordinate.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to