mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
scale: Document interaction between rounding and autoscrolling
This is a bit of a gotcha, so better document it.
This commit is contained in:
parent
f7c87fb3b7
commit
07e9b399d5
@ -1116,6 +1116,11 @@ gtk_scale_new_with_range (GtkOrientation orientation,
|
||||
* Sets the number of decimal places that are displayed in the value.
|
||||
* Also causes the value of the adjustment to be rounded off to this
|
||||
* number of digits, so the retrieved value matches the value the user saw.
|
||||
*
|
||||
* Note that rounding to a small number of digits can interfere with
|
||||
* the smooth autoscrolling that is built into #GtkScale. As an alternative,
|
||||
* you can use the #GtkScale::format-value signal to format the displayed
|
||||
* value yourself.
|
||||
*/
|
||||
void
|
||||
gtk_scale_set_digits (GtkScale *scale,
|
||||
|
Loading…
Reference in New Issue
Block a user