Skip to content

spinbutton: Fix numeric mode

Matthias Clasen requested to merge matthiasc/gtk:numeric-spinbutton into main

Numeric mode is meant to prevent the user from inserting
non-numeric characters into the spin button. This broke when
GtkSpinButton was ported to use a GtkText as delegate. Instead
of implementing insert_text ourselves, we need to connect to the
insert-text signal in the delegate to do the filtering.

Fixes: #7311 (closed)

Merge request reports

Loading