mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
spinbutton: Update accessible state
Make sure to set value-max/min/now when the adjustment changes.
This commit is contained in:
parent
9190e95df9
commit
9458c1cc47
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user