mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
Merge branch 'spinbutton-hint' into 'main'
gtkspinbutton: Set number input hint for text field See merge request GNOME/gtk!7485
This commit is contained in:
commit
d09a610433
@ -2294,6 +2294,8 @@ gtk_spin_button_set_numeric (GtkSpinButton *spin_button,
|
||||
if (spin_button->numeric != numeric)
|
||||
{
|
||||
spin_button->numeric = numeric;
|
||||
gtk_text_set_input_purpose (GTK_TEXT (spin_button->entry),
|
||||
numeric ? GTK_INPUT_PURPOSE_NUMBER: GTK_INPUT_PURPOSE_FREE_FORM);
|
||||
g_object_notify_by_pspec (G_OBJECT (spin_button), spinbutton_props[PROP_NUMERIC]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user