spinbutton: Update accessible state

Make sure to set value-max/min/now when the adjustment
changes.
This commit is contained in:
Matthias Clasen 2020-07-27 21:17:07 -04:00
parent 9190e95df9
commit 9458c1cc47

View File

@ -1643,6 +1643,12 @@ gtk_spin_button_configure (GtkSpinButton *spin_button,
g_object_thaw_notify (G_OBJECT (spin_button));
gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
GTK_ACCESSIBLE_PROPERTY_VALUE_MAX, gtk_adjustment_get_upper (adjustment),
GTK_ACCESSIBLE_PROPERTY_VALUE_MIN, gtk_adjustment_get_lower (adjustment),
GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, gtk_adjustment_get_value (adjustment),
-1);
gtk_spin_button_value_changed (adjustment, spin_button);
}